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 | |
| PID_LIST="" | |
| for i in `seq 1 9`; do | |
| sleep 3s && echo $? > /tmp/PID_${!} & | |
| PID_LIST="${PID_LIST} $!" | |
| echo "Started process with pid $!" | |
| done | |
| wait | |
| for pid in ${PID_LIST}; do | |
| echo "PID: ${pid} EXIT: $(</tmp/PID_${pid})" |
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
| <?xml version="1.0" ?> | |
| <layman> | |
| <overlay | |
| type="git" | |
| src="git://github.com/larstobi/lottanzb.git" | |
| name="lottanzb" | |
| contact="larstobi@snota.no"> | |
| <link>http://github.com/larstobi/lottanzb/tree/master</link> | |
| <description>LottaNZB overlay</description> | |
| </overlay> |
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 | |
| source bootstrap_functions.sh | |
| ensure_packages_installed "git ruby ruby-irb rubygems httpd" | |
| ensure_user_present "puppet" | |
| ensure_directory "/etc/puppet" | |
| ensure_file "/etc/puppet/puppet.conf" "puppet.master.conf" | |
| ensure_yum_repo "my.repo" | |
| ensure_vhost_present "yum.conf" | |
| ensure_package_installed "rubygem-puppet" |
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
| function package_installed { | |
| name=$1 | |
| if `rpm -q $name 1>/dev/null`; then | |
| return 0 | |
| else | |
| return 1 | |
| fi | |
| } | |
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
| larstobi@mactobi:~/.puppet/modules/cloud_provisioner$ rspec | |
| /Users/larstobi/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- puppet/face/node/terminate (LoadError) | |
| from /Users/larstobi/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
| from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/puppet-2.7.5/lib/puppet/interface.rb:114:in `load_actions' | |
| from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/puppet-2.7.5/lib/puppet/interface.rb:111:in `each' | |
| from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/puppet-2.7.5/lib/puppet/interface.rb:111:in `load_actions' | |
| from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/puppet-2.7.5/lib/puppet/interface.rb:110:in `each' | |
| from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/puppet-2.7.5/lib/puppet/interface.rb:110:in `load_actions' | |
| from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/puppet-2.7.5/lib/puppet/interface.rb:45:in `define' | |
| from /Users |
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
| # Indent selection reintents to this: | |
| file { | |
| "/etc/my_symlink": | |
| ensure => link, | |
| target => "realfile"; | |
| } | |
| # instead of this: | |
| file { | |
| "/etc/my_symlink": |
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
| { scopeName = 'source.puppet'; | |
| fileTypes = ( 'pp' ); | |
| foldingStartMarker = '(^\s*/\*|(\{|\[|\()\s*$)'; | |
| foldingStopMarker = '(\*/|^\s*(\}|\]|\)))'; | |
| patterns = ( | |
| { include = '#line_comment'; }, | |
| { name = 'comment.block.puppet'; | |
| begin = '^\s*/\*'; | |
| end = '\*/'; | |
| }, |
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
| { increaseIndentPattern = '^.*(\{|\(|:)\s*$'; | |
| decreaseIndentPattern = '^\s*(\)|\}|;)\s*$'; | |
| } |
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
| file { | |
| "/var/spool/gitolite": | |
| ensure => directory, | |
| owner => "git", | |
| group => "git"; | |
| "admin.pub": | |
| ensure => present, | |
| path => "/var/spool/gitolite/admin.pub", | |
| content => "ssh-rsa AAAAB3NzaC1...bmhLcxczOQ== admin@example.net"; |
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 user_larstobi { | |
| $user = "larstobi" | |
| group { "$user": | |
| ensure => present, | |
| allowdupe => false, | |
| } | |
| user { "$user": | |
| comment => "Lars Tobias Skjong-Borsting", | |
| gid => "$user", |
OlderNewer