Skip to content
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

Parameterize lxd alias #5

Closed
indispeq opened this issue Jul 1, 2016 · 1 comment
Closed

Parameterize lxd alias #5

indispeq opened this issue Jul 1, 2016 · 1 comment

Comments

@indispeq
Copy link
Contributor

indispeq commented Jul 1, 2016

I do not have access to push a new branch so here is my modification:

commit 4bd187e6a47cb8287bdbf2e546704d74f3744f4b
Author: Aron Szekely <aron@indispeq.com>
Date:   Fri Jul 1 14:03:37 2016 -0400

    Parameterize lxd alias hostvar

diff --git a/tasks/lxd.yml b/tasks/lxd.yml
index f869130..54657ff 100644
--- a/tasks/lxd.yml
+++ b/tasks/lxd.yml
@@ -14,7 +14,7 @@
       mode: pull
       server: https://images.linuxcontainers.org
       protocol: lxd
-      alias: "ubuntu/xenial/amd64"
+      alias: '{{ hostvars[item].get("lxd_alias", "ubuntu/xenial/amd64") }}'
     profiles: ['default']
     wait_for_ipv4_addresses: true
   when: item.split('.')[-1] == 'lxd'

How can I get r/w access to this repo?

@indispeq
Copy link
Contributor Author

indispeq commented Jul 5, 2016

J'ai acces et fait un PR je ferme.

@indispeq indispeq closed this as completed Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant