-
Notifications
You must be signed in to change notification settings - Fork 341
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
Provide default for lxc_template_debootstrap_release #135
Comments
Updated above, removed the | mandatory as I had hacked up the template file on the LXC host and forgot about the edit, this was likely causing the "stretch" default to be set. |
So you are saying that when you run Ansible from macOS, the
Do you get "sane" facts, or are variables like In the above case I would probably go with the |
The above Ansible command run from OSX properly comes back with stretch when run against the LXC host: other facts seem in order. I'll keep looking. |
Pushed everything back up the hill, killed the mods to the defaults.yml, made sure there was on override being set in inventory, nuked /usr/share/lxc/templates/lxc-debops on the LXC host... and now it is getting set as expected in the template file... Closing issue till it repos. DEFAULT_RELEASE="stretch" used to be DEFAULT_RELEASE="" Now on to why stretch is not supported in the template file. |
debops/ansible/roles/debops.lxc/defaults/main.yml
Line 212 in 79236c0
Another item that is likely due to launching controller from within OSX.
The default behavior if no _release is specifically provided results in an empty ..._release variable and then this error, note the space before the comma.
lxc_template_debootstrap_release: '{{ ansible_distribution_release | default("stretch") }}'
I can submit a PR with the above change if you agree.
Next on the list is to figure out why the command below doesn't like stretch as a distro release. If anyone has any ideas.
$ lxc-create -n obj01 -t debops -f /etc/lxc/external.conf debootstrap is /usr/sbin/debootstrap Invalid release stretch, valid ones are: squeeze wheezy jessie sid lxc-create: lxccontainer.c: create_run_template: 1297 container creation template for obj01 failed lxc-create: tools/lxc_create.c: main: 318 Error creating container obj01
The text was updated successfully, but these errors were encountered: