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
class profile::vcs { | |
vcsrepo { '/opt/repository-example': | |
ensure => present, | |
provider => git, | |
source => 'https://github.com/cloudera/repository-example', | |
revision => '10abb2ff63a6a2c182aa90d6be120896b5d3a4cc', | |
} | |
vcsrepo { '/opt/spamassassin': |
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
Loaded plugins: fastestmirror | |
Loading mirror speeds from cached hostfile | |
* epel: epel.mirrors.ovh.net | |
The following security advisories exist for installed packages: | |
Advisory ID: CESA-2014--0917 | |
Severity: Critical | |
Packages: | |
* nss-sysinit-3.15.1-15.el6 | |
* nss-util-3.15.1-3.el6 |
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
$swapfile_path = '/mnt/swap.1' | |
$margin = '5MB' | |
$expected_swapfile_size = '200MB' | |
if ($::swapfile_sizes and is_hash($::swapfile_sizes)) { | |
$margin_bytes = to_bytes($margin) | |
$existing_swapfile_bytes = to_bytes("${::swapfile_sizes[$swapfile_path]}kb") | |
$expected_swapfile_size_bytes = to_bytes($expected_swapfile_size) |
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
package_data = Facter::Util::Resolution.exec('rpm --query --all --qf "%{NAME}||%{VERSION}\n"') | |
package_data.split("\n").each do |line| | |
rpm_detail = line.split("||") | |
package_name = 'package_' + rpm_detail[0] | |
package_version = rpm_detail[1] | |
Facter.add(package_name) do | |
setcode do |
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
archive { 'C:\Temp\': | |
path => 'C:\', | |
source => 'http://www-eu.apache.org/dist/tomcat/tomcat-9/v9.0.0.M3/bin/apache-tomcat-9.0.0.M3.zip', | |
checksum => 'f2aaf16f5e421b97513c502c03c117fab6569076', | |
checksum_type => 'sha1', | |
extract => true, | |
extract_path => 'C:\Temp', | |
creates => 'C:\Temp\Tomcat', | |
} |
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
#!/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 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 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 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 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 |