-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file.managed error: is not an absolute path #126
Comments
@martinohansen So, continuing from my message in Slack:
Try this instead: file.managed:
- names:
- {{ exabgp.config.path }}/{{ exabgp.config.name }}:
- - source: {{ files_switch(['exabgp.conf.jinja']) }}
+ - source: {{ files_switch(['exabgp.conf.jinja'], indent_width=10) }}
- {{ exabgp.env.path }}/{{ exabgp.env.name }}:
- - source: {{ files_switch(['exabgp.env.jinja']) }}
+ - source: {{ files_switch(['exabgp.env.jinja'], indent_width=10) }}
- mode: 644
- user: {{ exabgp.user }}
- group: {{ exabgp.group }} By the way, it's also good practice to provide a |
Ah, of course. Thank you so much! |
You're welcome. |
Hi,
Im trying to make a new formula based on this template as it seems like a great starting point. Please be aware; this is one of my first formulas and i might be prone to beginner mistakes.
Running this state:
with defaults.yaml:
Gives me errors like this (with different paths) at the minion:
Let me know if i need to provide more data or a better explanation.
Thanks,
Martin
The text was updated successfully, but these errors were encountered: