This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "access_key" { | |
description = "AWS - access key" | |
type = string | |
sensitive = true | |
} | |
variable "secret_key" { | |
description = "AWS - secret key" | |
type = string | |
sensitive = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = "us-east-2" | |
access_key = var.access_key | |
secret_key = var.secret_key | |
} | |
module "infra" { | |
source = "wcollins/infra/aws" | |
vpc_name = "vpc-aws-east-2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "azurerm" { | |
features {} | |
subscription_id = var.subscription_id | |
client_id = var.client_id | |
client_secret = var.client_secret | |
tenant_id = var.tenant_id | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"builders": [{ | |
"type": "azure-arm", | |
"client_id": "{{user `client_id`}}", | |
"client_secret": "{{user `client_secret`}}", | |
"tenant_id": "{{user `tenant_id`}}", | |
"subscription_id": "{{user `subscription_id`}}", | |
"managed_image_resource_group_name": "demo-eastus-rg", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
collections: | |
- name: netbox.netbox | |
version: 1.0.0 | |
source: https://galaxy.ansible.com | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Block - Append prefix-list on IOS | |
- name: Append prefix-list on IOS | |
block: | |
# Create temp staging directory | |
- name: Stage config directory | |
file: | |
path: "staging/{{ inventory_hostname }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Add next prefix in Netbox | |
netbox.netbox.netbox_prefix: | |
netbox_url: "{{ netbox_url }}" | |
netbox_token: "{{ netbox_token }}" | |
data: | |
# Define criteria for prefix | |
parent: "{{ prefix_parent }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- include_tasks: task.netbox_reserve_prefix_vnet.yml | |
when: play_action == 'netbox_reserve_prefix_vnet' | |
- include_tasks: task.netbox_reserve_prefix_snet.yml | |
when: play_action == 'netbox_reserve_prefix_snet' | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
connection: local | |
hosts: localhost | |
gather_facts: False | |
vars: | |
play_action: netbox_reserve_prefix_snet | |
roles: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/deploy_hugo_site.yml | |
name: Deploy Hugo Site | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: |
NewerOlder