This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
Using templates, variables and an inventory #21
haary
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all I wanted to say what a great tool efs2 is. I generally prefer small and simple software and efs2 is the perfect tool for simple remote automation tasks. No more tinkering with Ansible's complicated YAML files for rather simple jobs.
However, I do sometimes need an inventory file, variables and templates. I did found a simple solution by writing a small wrapper script and using ESH as a template engine.
A real world example that I use is as follows
Efs2file
Inventory (inventory file)
Vars (variables file)
rules.v4.esh - template for iptables-persistent rules
Glueing it all together in the wrapper script runefs2.sh
Run it with
runefs2.sh Inventory
Improvements are very welcome, of course :-)
Beta Was this translation helpful? Give feedback.
All reactions