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: packages/keystone.yml, when: playbook_action != 'uninstall' } | |
- { include: packages/glance.yml, when: playbook_action != 'uninstall' } | |
- { include: packages/nova.yml, when: playbook_action != 'uninstall' } | |
- { include: packages/neutron.yml, when: playbook_action != 'uninstall' } | |
- { include: packages/cinder.yml, when: playbook_action != 'uninstall' } | |
- { include: packages/cinderv2.yml, when: playbook_action != 'uninstall' } | |
- { include: packages/heat.yml, when: playbook_action != 'uninstall' } |
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: pre.yml | |
tags: pre, glance, glance:pre | |
- include: repos.yml | |
tags: repos, glance, glance:repos | |
- include: pkgs.yml |
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
#!/bin/bash | |
# | |
dev_inv='./inventory_dev' | |
prod_inv='./inventory_prod' | |
playbook_dir="./playbooks" | |
site_playbook_name="site" | |
bootstrap_playbook_name="bootstrap" | |
infra_playbook_name="infrastructure" |
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
git remote add upstream [email protected]:llnw/salt-states.git | |
git fetch upstream | |
git checkout master | |
git rebase upstream/master | |
git push | |
git checkout remotes/origin/CONFIGMGMT-910 | |
steve@bunsen:~/Work/salt/salt-states$ git status | |
HEAD detached at origin/CONFIGMGMT-910 | |
nothing to commit, working directory clean |
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
root@bernie:/home/rebar/.cache/digitalrebar/tftpboot# ls C0* | |
C0A833C8.conf | |
root@bernie:/home/rebar/.cache/digitalrebar/tftpboot# more C0A833C8.conf | |
delay=2 | |
timeout=20 | |
verbose=5 | |
image=discovery/vmlinuz0 | |
initrd=discovery/stage1.img | |
append=rootflags=loop stage2=http://192.168.40.70:8091/discovery/stage2.img root=live:/sledgehammer | |
.iso rootfstype=auto ro liveimg rd_NO_LUKS rd_NO_MD rd_NO_DM provisioner.web=http://192.168.40.70:8 |
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
[root@localhost ~]# more /var/lib/dhclient/dhclient.leases | |
lease { | |
interface "eth0"; | |
fixed-address 192.168.51.200; | |
option subnet-mask 255.255.255.0; | |
option dhcp-lease-time 60; | |
option routers 192.168.51.70; | |
option dhcp-message-type 5; | |
option bootfile-name "bootx64.efi"; | |
option dhcp-server-identifier 192.168.51.70; |
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
[root@localhost ~]# cat /proc/cmdline | |
BOOT_IMAGE=discovery/vmlinuz0 rootflags=loop stage2=http://192.168.40.70:8091/discovery/stage2.img root=live:/sledgehammer.iso rootfstype=auto ro liveimg rd_NO_LUKS rd_NO_MD rd_NO_DM provisioner.web=http://192.168.40.70:8091 rebar.web=https://192.168.40.70 rebar.uuid=9c4f5d28-addb-4732-884b-61a7a83e99d8 rebar.install.key=machine-install:945489be915af82aa6fdda152e104610fedd34d317e74a628a3fc27035e3e9b5721b7d4e9df8982698174236e11847610d4b826905c096844b6222211e3d66b6 initrd=discovery/stage1.img BOOTIF=01-b4-99-ba-aa-65-e8 |
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
Yes, this is a contrived example just to show off what I'm talking about... | |
init.sls ( I used /base/be_cool/init.sls) | |
======== | |
do_something_cool: | |
cmd.run: | |
- unless: '[[ -e /tmp/dsc.no_run ]]' | |
- name: echo 'done' > /tmp/dsc.log && touch /tmp/dsc.report && 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
## | |
## salt '*' grains.setval key val | |
## salt '*' grains.setval key "{'sub-key': 'val', 'sub-key2': 'val2'}" | |
## | |
{% set id = grains.id %} | |
{% set os = grains.os %} | |
{% set node_type = pillar.node_type %} | |
{% set node_role = pillar.node_role %} |
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
''' | |
Support for Debconf | |
''' | |
# Import python libs | |
import logging | |
import os | |
import re | |
# Import salt libs |