Replies: 2 comments 5 replies
-
It will need a slightly different syntax, since "script" is the content of the script. Like: provision:
- mode: system
script: ""
path: ./scripts/001-bootstrap.sh The main complexity is that the script path needs to be available in the instance. With the Ansible playbooks, they are copied over by Some templates are using external scripts today, but then they are downloaded:
Another approach is to template the creation of the yaml files, something like jinja2. |
Beta Was this translation helpful? Give feedback.
-
Note that you can still run
EDIT: However, it will complain about the go template strings - I guess those need expanding first...
|
Beta Was this translation helpful? Give feedback.
-
Can the provisioners point to script files as an alternate option to inline scripts? This will be very useful when we have a bunch of templates that share many script blocks in common but set up unique environments. This will have the following benefits in my view:
Something similar to the following:
Thanks in advance. 🙏
Beta Was this translation helpful? Give feedback.
All reactions