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

Add support for Azure Public IP resource #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicosingh
Copy link
Contributor

@nicosingh nicosingh commented Sep 11, 2019

The idea is to use azurerm_public_ip terraform resources, which are the place where public IP addresses are defined for Azure VMs.

For instance:

resource "azurerm_public_ip" "cheap-worker-vm-ip" {
  name                = "cheap-worker-ip-address"
  location            = "${azurerm_resource_group.my-resource-group.location}"
  resource_group_name = "${azurerm_resource_group.my-resource-group.name}"
  allocation_method   = "Dynamic"

  tags = {
    Role = "cheap-worker"
  }
}

Will match later in ansible-playbook using the defined Role:

---
- hosts: role_cheap-worker
  remote_user: ubuntu
  become: yes
  become_user: root
  tasks:
    - name: install apps
       apt: name=cowsay update_cache=yes

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

Successfully merging this pull request may close these issues.

1 participant