Skip to content

Instantly share code, notes, and snippets.

View arnisoph's full-sized avatar
👋

Arnold Bechtoldt arnisoph

👋
View GitHub Profile
# cat << EOF > /etc/salt/master
autosign_file: /etc/salt/autosign.conf
file_roots:
base:
- /srv/salt/states
reactor:
- salt/minion/*/start:
- /srv/salt/reactor/basic.sls
- salt/job/*/ret/*:
- /srv/salt/reactor/job_ret.sls
@arnisoph
arnisoph / init.pp
Last active September 10, 2015 18:41
cfg-mgmt-declarative-model-programming
user {'admin_user':
ensure => present,
name => 'john',
shell => '/bin/zsh',
managehome => true,
require => Package['apache_package'],
before => File['html_doc'],
}
service {'apache_service':
@arnisoph
arnisoph / 1-preparing-steps.sh
Last active August 29, 2015 14:25
packer-vagrant-to-boostrap-a-test-infrastructure-pt3
$ mkdir demo-elasticsearch-vagrant
$ cd demo-elasticsearch-vagrant
$ git init
$ git submodule add https://github.com/bechtoldt/iac-vagrant vagrant
Cloning into 'vagrant'...
remote: Counting objects: 403, done.
remote: Total 403 (delta 0), reused 0 (delta 0), pack-reused 403
Receiving objects: 100% (403/403), 52.14 KiB | 0 bytes/s, done.
Resolving deltas: 100% (202/202), done.
Checking connectivity... done.
@arnisoph
arnisoph / top.sls
Last active August 29, 2015 14:25
os-specific pillar
base:
'*':
- w00t
'G@os:Debian and E@foo.*':
- match: compound
- one.sunstone.debian
'G@os:RedHat and E@foo.*':
- match: compound
- one.sunstone.rhel
@arnisoph
arnisoph / minimal.json
Last active August 29, 2015 14:22
packer-vagrant-to-boostrap-a-test-infrastructure-pt2
{
"box_name": "DEV_Debian_78_min",
"root_password": "muxOFub4u=_POqqIiSBbMa6s+aBlE-1e",
"headless": "true",
"iso_url": "http://cdimage.debian.org/cdimage/release/7.8.0/amd64/iso-cd/debian-7.8.0-amd64-netinst.iso",
"iso_checksum": "a91fba5001cf0fbccb44a7ae38c63b6e"
}