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
# Environment: RHEL6 with Passenger from EPEL and Puppet Open-source from yum.puppetlabs.com | |
# Howto compile: | |
# yum install checkpolicy | |
# checkmodule -M -m -o local_puppet_passenger.mod local_puppet_passenger.te && | |
# semodule_package -o local_puppet_passenger.pp -m local_puppet_passenger.mod && | |
# semodule --install local_puppet_passenger.pp | |
module local_puppet_passenger 2.17; |
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
<VirtualHost *:80> | |
ServerName phabricator.my.domain | |
## Vhost docroot | |
DocumentRoot "/opt/phacility/phabricator/webroot" | |
<Directory "/opt/phacility/phabricator/webroot"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride None |
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 | |
# Author: Thomas Mueller <[email protected]> | |
# Date: 2015-06-05 | |
# enable to exit on first error | |
# set -e | |
# list gem's to create rpm's seperated by space | |
# example for 2 gems: gem_list="r10k trocla" |
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 | |
# Author: Thomas Mueller <[email protected]> | |
# Date: 2015-06-10 | |
# enable to exit on first error | |
# set -e | |
# list gem's to create rpm's seperated by space | |
# example for 2 gems: gem_list="r10k trocla" |
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
# all checks will "fail", but check date output | |
# | |
# fails with: rspec test_spec.rb </dev/null | |
# works with: rspec test_spec.rb | |
require 'serverspec' | |
set :backend, :exec | |
describe 'test' 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
# https://groups.google.com/forum/#!topic/puppet-users/1ol4b1euTiE | |
class nvidia::driver_install ( | |
include stdlib | |
$model_hash = { | |
009d => "$::nvidia::params::quadro_fx_4500_driver", | |
06dc => "$::nvidia::params::quadro_6000_driver", | |
06d9 => "$::nvidia::params::quadro_5000_driver", | |
11ba => "$::nvidia::params::quadro_K5000_driver", | |
17c2 => "$::nvidia::params::gtx_titanx_driver", |
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 | |
######################################## | |
# create the first spacewalk account | |
# satwho requires it | |
LANG=C | |
tempfile=$(mktemp /tmp/$(basename $0).XXXXXX) |
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
# Simple demo-install of rundeck on EL7 (CentOS, RHEL) | |
# | |
# Pre-requisites: | |
# - Installed modules | |
# puppet module install puppetlabs-java | |
# puppet module install puppet-rundeck | |
# puppet module install crayfishx-firewalld | |
# - $::fqdn fact needs to be working | |
# | |
# Install: puppet apply rundeck.pp |
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
policy_module(openvpn_allow_all_ports, 0.1.0) | |
gen_require(` | |
attribute port_type; | |
type openvpn_t; | |
') | |
allow openvpn_t port_type:tcp_socket { name_bind }; |
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
$ /opt/puppetlabs/bin/puppet apply --strict_variables /tmp/test.pp | |
Error: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String or Type, got Integer at /tmp/test.pp:4:5 on node tmueller-notebook.local |
OlderNewer