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
file { 'C:/Users/Administrator/jdk-8u45-windows-x64.exe': | |
mode => '0777', | |
} | |
-> | |
package {'java': | |
ensure => installed, | |
source => 'C:/Users/Administrator/jdk-8u45-windows-x64.exe', | |
install_options => ['INSTALLDIR=C:\java8', 'STATIC=1', '/s'], | |
} | |
registry_value { 'HKLM\System\CurrentControlSet\Control\Session Manager\Environment\JAVA_HOME': |
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
test_name "Test exec subscribed to file" do | |
manifest =<<EOS | |
$thing = "hi there" | |
... | |
... | |
exec {'cp /root/mytestfile.rb /root/newtestfile.rb'} | |
EOS | |
step "Create manifest" do | |
apply_manifest_on(master, manifest) | |
master.file_exists? "/root/mytestfile.rb" |
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
root@kchejzi5z568vxr:~# cat manifest.pp | |
mount { '/pl21474': | |
ensure => 'mounted', | |
device => '/tmp/pl21474', | |
dump => '0', | |
fstype => 'ext3', | |
options => 'loop', | |
pass => '0', | |
target => '/etc/fstab', | |
} |
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
MYNAME=john | |
dscl . create /Users/$MYNAME | |
dscl . create /Users/$MYNAME UserShell /bin/bash | |
dscl . create /Users/$MYNAME UniqueID 600 | |
dscl . create /Users/$MYNAME PrimaryGroupID 20 | |
dscl . create /Users/$MYNAME NFSHomeDirectory /Users/$MYNAME | |
dscl . passwd /Users/$MYNAME secret | |
dscl . append /Groups/admin GroupMembership $MYNAME | |
mkdir /Users/$MYNAME | |
chown $MYNAME:staff /Users/$MYNAME |
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
... | |
pe-aix-61-acceptance executed in 2.95 seconds | |
pe-aix-61-acceptance: package repo configuration not modified | |
setting local environment on pe-aix-61-acceptance | |
pe-aix-61-acceptance 14:01:10$ mkdir -p ~/.ssh | |
pe-aix-61-acceptance executed in 0.20 seconds | |
pe-aix-61-acceptance 14:01:10$ chmod 0600 ~/.ssh |
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
forge "http://forge.puppetlabs.com" | |
# Forge modules | |
mod "puppetlabs-stdlib" | |
mod "puppetlabs-git" | |
mod "puppetlabs-apt" | |
mod "puppetlabs-vcsrepo" | |
mod "nanliu-staging" | |
mod "gildas-homebrew" | |
mod "saz-vim" |
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
include 'vim' | |
package { 'lsb-release': ensure => present, } | |
apt::source { 'debian_jessie': | |
location => 'http://debian.osuosl.org/debian/', | |
release => 'jessie', | |
repos => 'main contrib non-free', | |
include => { | |
'src' => true, | |
'deb' => true, | |
}, |
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
# cat /tmp/puppetdb_manifest.pp.T6vbjj | |
class { 'puppetdb::server': | |
database => 'postgres', | |
puppetdb_version => '71646c6d05547147faf87a3382c6fac75a07f0cd-1.el7', | |
} | |
# get the pg server up and running | |
class { 'postgresql::globals': | |
manage_package_repo => true, | |
version => '9.3', |
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 puppetstein | |
# the commands below assume that you are running | |
# puppetstein from its repo directory and | |
# using bundler to manage it rather than | |
# installing it for your default environment | |
git clone https://github.com/whopper/puppetstein.git | |
cd puppetstein | |
bundle install | |
bundle exec gem install bundler |
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
# Assumptions: | |
# * Following commands are run as a non-root user on a POSIX OS | |
# * Puppet-agent is installed and has been invoked at least once by the | |
# user in order to create the local puppetlabs directory path. | |
# This can be done with `puppet module install motd` | |
# * Git is installed | |
# * Ruby is installed | |
# * Bundler is installed | |
git clone https://github.com/johnduarte/puppet-beaker_101.git ~/.puppetlabs/etc/code/modules/beaker_101 |
OlderNewer