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 | |
# | |
# /etc/rc.d/init.d/<servicename> | |
# | |
# <description of the *service*> | |
# <any general comments about this init script> | |
# | |
# <tags -- see below for tag definitions. *Every line* from the top | |
# of the file to the end of the tags section must begin with a # | |
# character. After the tags section, there should be a blank line. |
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
description "Docker Bootstrap" | |
author "Me" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
/usr/bin/docker -d \ | |
-H unix:///var/run/docker-bootstrap.sock \ | |
-p /var/run/docker-bootstrap.pid \ | |
--iptables=false \ |
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@centos-2gb-lon1-01 ~]# yum install -y git | |
Loaded plugins: fastestmirror | |
base | 3.6 kB 00:00 | |
extras | 3.4 kB 00:00 | |
updates | 3.4 kB 00:00 | |
(1/4): base/7/x86_64/group_gz | 155 kB 00:00 | |
(2/4): extras/7/x86_64/primary_db | 101 kB 00:00 | |
(3/4): updates/7/x86_64/primary_db | 3.1 MB 00:00 | |
(4/4): base/7/x86_64/primary_db | 5.3 MB 00:00 | |
Determining fastest mirrors |
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
package { '7zip': | |
ensure => present, | |
name => $7zip_name, | |
source => $7zip_source, | |
provider => $7zip_provider, | |
} |
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
docker::image { 'gcr.io/google_containers/etcd': | |
image_tag => '2.0.9' | |
} | |
docker::image { 'gcr.io/google_containers/hyperkube': | |
image_tag => 'v0.17.0' | |
} | |
wget::fetch { 'kubectl': | |
source => "https://storage.googleapis.com/kubernetes-release/release/v0.17.0/bin/linux/amd64/kubectl", | |
destination => "/tmp/kubectl" | |
} -> |
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
- rvm: '2.1' | |
sudo: required | |
services: docker | |
env: PUPPET_VERSION="3.8.4" BEAKER_set="centos-6-docker" | |
script: bundle exec rake acceptance | |
bundler_args: --without development |
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
su - pe-puppet -s /bin/bash -c "r10k --trace deploy environment production -pv -c /opt/puppetlabs/server/data/code-manager/r10k.yaml" |
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: | |
freebsd-10-x64: | |
roles: | |
- master | |
platform: freebsd-10-x64 | |
box : freebsd-10-x64-vbox | |
box_url : https://vagrantcloud.com/chef/boxes/freebsd-10.0/versions/1.0.0/providers/virtualbox.box | |
hypervisor : vagrant | |
CONFIG: | |
type: git |
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
class pe_users_and_groups { | |
user { 'pe-activemq': | |
ensure => 'present', | |
comment => 'Puppet Enterprise Apache Activemq', | |
gid => '492', | |
home => '/opt/puppetlabs/server/data/activemq', | |
password => '!!', | |
password_max_age => '-1', | |
password_min_age => '-1', | |
shell => '/sbin/nologin', |
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
## in case an older version of puppet is installed, remove it | |
apt-get purge puppet -y | |
rm /etc/puppet -rf | |
apt-get autoremove -y | |
apt-get install wget | |
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-wheezy.deb | |
dpkg -i puppetlabs-release-pc1-wheezy.deb | |
apt-get update |