This file contains 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
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
set $mod Mod4 | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. | |
font Terminus 8 |
This file contains 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
# Get full minion id, should be fqdn | |
{%- set id = salt.grains.get('id') %} | |
# Get the hostname | |
{%- set sid = id.split('.')[0] %} | |
# Break down the hostname into the chunks we need to generate the pillar | |
# folder structure | |
{%- set use = sid[0:3] %} # use: not used within pillar ATM | |
{%- set platform = sid[3:6] %} # platform | |
{%- set component = sid[6:9] %} # component |
This file contains 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
# Get full minion id, should be fqdn | |
{%- set id = salt.grains.get('id') %} | |
# Get the hostname | |
{%- set sid = id.split('.')[0] %} | |
# Break down the hostname into the chunks we need to generate the pillar | |
# folder structure | |
{%- set use = sid[0:3] %} # use: not used within pillar ATM | |
{%- set platform = sid[3:6] %} # platform | |
{%- set component = sid[6:9] %} # component |
This file contains 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
{% set id = salt.grains.get('id') %} | |
{% set sid = id.split('.')[0] %} | |
{%- set use = sid[0:3] %} | |
{%- set platform = sid[3:6] %} | |
{%- set component = sid[6:9] %} | |
{%- set os = sid[9] %} | |
{%- set number = sid[10:12] %} | |
{%- set env = sid[12] %} | |
{%- set domain = id.split('.')[1:]|join('.') %} |
This file contains 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
{% set blah = { | |
'bob': { | |
'ip': '123', | |
'comment': 'foo', | |
'vol': '/dev/one', | |
}, | |
'alice': { | |
'ip': '123', | |
'comment': 'foo', | |
'vol': '/dev/one', |
This file contains 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
# vi: set ft=sh : | |
red="38;5;1" | |
light_red="38;5;9" | |
dark_red="38;5;124" | |
yellow="38;5;220" | |
light_yellow="38;5;11" | |
dark_yellow="38;5;142" | |
blue="38;5;4" | |
light_blue="38;5;12" |
This file contains 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
curl -sSk http://localhost:8000 \ | |
-d username='terraform' \ | |
-d password='terraform' \ | |
-d eauth=pam \ | |
-d client="wheel" \ | |
-d fun="key.delete" \ | |
-d match="mgtcfgconl02c.*" |
This file contains 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 "consul_machine_name" { default = "mgtcfgconl" } | |
resource "vsphere_virtual_machine" "consul" { | |
count = "3" | |
name = "${format("%v%02d%v", var.consul_machine_name, count.index + 1, var.environment)}" | |
num_cpus = "2" | |
memory = "1024" | |
guest_id = "${var.guest_id}" | |
datastore_id = "${data.vsphere_datastore.datastore.id}" | |
resource_pool_id = "${data.vsphere_resource_pool.pool.id}" |
This file contains 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 "consul_machine_name" { default = "mgtcfgconl" } | |
resource "vsphere_virtual_machine" "consul" { | |
count = "3" | |
name = "${format("%v%02d%v", var.consul_machine_name, count.index + 1, var.environment)}" | |
num_cpus = "2" | |
memory = "1024" | |
guest_id = "${var.guest_id}" | |
datastore_id = "${data.vsphere_datastore.datastore.id}" | |
resource_pool_id = "${data.vsphere_resource_pool.pool.id}" |
This file contains 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
#!/usr/bin/env bash | |
# Bootstrap salt | |
if ! mkdir -p /etc/salt/pki/minion; then | |
echo "Failed to create PKI dir" | |
exit 1 | |
elif ! echo "master: ${master_ip}" > /etc/salt/minion; then | |
echo "Failed to set master address" | |
exit 1 | |
elif ! echo "mine_interval: 1" >> /etc/salt/minion; then |
OlderNewer