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

Fix host network interface #15

Open
cimbalo opened this issue May 6, 2017 · 3 comments
Open

Fix host network interface #15

cimbalo opened this issue May 6, 2017 · 3 comments
Assignees

Comments

@cimbalo
Copy link
Contributor

cimbalo commented May 6, 2017

Review templates/interfaces.j2 used by prepare_host.yaml:

@edoput
Copy link
Member

edoput commented May 7, 2017

Using the variables from the setup module

biff | SUCCESS => {
    "ansible_facts": {
        "ansible_all_ipv4_addresses": [
            "10.150.40.4"
        ], 
        "ansible_default_ipv4": {
            "address": "10.150.40.4", 
            "alias": "eth0", 
            "broadcast": "10.150.40.255", 
            "gateway": "10.150.40.1", 
            "interface": "eth0", 
            "macaddress": "54:a0:50:d6:9a:f9", 
            "mtu": 1500, 
            "netmask": "255.255.255.0", 
            "network": "10.150.40.0", 
            "type": "ether"
        }, 
        ...

I tried something that can be useful without much work, see 93e02dd

This will use the name for the default network interface in the template

I also removed the management vlan id as it is now the untagged one

@edoput
Copy link
Member

edoput commented May 7, 2017

I'm not sure as to how the external gateway should fit into this template. Should we make it a variable in hostvars?

@edoput
Copy link
Member

edoput commented May 7, 2017

Also I have choosen the ansible_default_ipv4.alias property but we can also go with ansible_default_ipv4.interface, I don't really know the difference

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

2 participants