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 | |
| # simple 3.7 NC classifier commands | |
| declare -x PE_CERT=$(/opt/puppet/bin/puppet agent --configprint hostcert) | |
| declare -x PE_KEY=$(/opt/puppet/bin/puppet agent --configprint hostprivkey) | |
| declare -x PE_CA=$(/opt/puppet/bin/puppet agent --configprint localcacert) | |
| declare -x PE_CERTNAME=$(/opt/puppet/bin/puppet agent --configprint certname) | |
| declare -x NC_CURL_OPT="-s --cacert $PE_CA --cert $PE_CERT --key $PE_KEY --insecure" |
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
| #profile class for https://forge.puppetlabs.com/ptierno/windowspagefile | |
| class profile::winpf { | |
| case $os[release][major] { | |
| "2008 R2": { if $::issql == 'true' { | |
| $initialpf = 24576 | |
| $maximumpf = 24576 | |
| } | |
| elsif $memorysize_mb < 16384 { | |
| $initialpf = 1024 | |
| $maximumpf = 1024 |
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 profile::windows::win_setup { | |
| include registry::service_example | |
| include registry::compliance_example | |
| file {'C:\windirstat1_1_2_setup.exe': | |
| ensure => present, | |
| source => 'puppet:///modules/profile/windirstat1_1_2_setup.exe', | |
| } | |
| package { 'WinDirStat 1.1.2': | |
| ensure => present, | |
| source => 'C:\windirstat1_1_2_setup.exe', |
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 profile::websphere { | |
| class { 'ibm_installation_manager': | |
| source_dir => '/vagrant/IBM/IM', | |
| target => '/opt/IBM/InstallationManager', | |
| } | |
| class { '::websphere': | |
| user => 'webadmin', | |
| group => 'webadmins', | |
| base_dir => '/opt/IBM', | |
| } |
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 profile::app::jenkins ( | |
| $jenkins_version = 'latest', | |
| $tomcat_major_version = '8', | |
| ) { | |
| case $tomcat_major_version { | |
| '6': { | |
| $tomcat_version = '6.0.44' | |
| $catalina_dir = "/opt/apache-tomcat6" | |
| $tomcat_other_versions = [ '7', '8'] | |
| } |
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 profile::example::wordpress { | |
| include apache | |
| include apache::mod::php | |
| include mysql::server | |
| include mysql::bindings | |
| include mysql::bindings::php | |
| apache::vhost { $::fqdn: | |
| priority => '10', | |
| vhost_name => $::fqdn, |
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
| node { | |
| stage ('Checkout Control Repo') { | |
| git url: 'https://github.com/velocity303/demo-control-repo.git', branch: 'production' | |
| } | |
| stage ('Check Style') { | |
| sh 'echo $(find . -type f -name "*.pp" \\( -exec /opt/puppetlabs/puppet/bin/puppet-lint --with-filename {} \\; -o -quit \\) 2>&1 ) | grep -v ERROR' | |
| } | |
| stage ('Check Syntax') { | |
| sh 'echo $(find . -type f -name "*.pp" \\( -exec /opt/puppetlabs/bin/puppet parser validate {} \\; -o -quit \\) 2>&1 ) | grep -v Error' |
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
| define profile::apache::rproxy_vhost ( | |
| $port, | |
| $host, | |
| ) { | |
| include profile::apache | |
| include apache::mod::proxy | |
| include apache::mod::rewrite | |
| Apache::Vhost { | |
| docroot => '/var/www/reverse', | |
| } |
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 Mssql_backend | |
| # Description: MS SQL back end to Hiera. | |
| class Hiera | |
| module Backend | |
| class Mssql_backend | |
| def initialize | |
| @use_jdbc = defined?(JRUBY_VERSION) ? true : false | |
| if @use_jdbc | |
| require 'jdbc/sqlserver' | |
| require 'java' |
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
| aws-partitions (1.23.0) | |
| aws-sdk (2.10.52) | |
| aws-sdk-core (2.10.52) | |
| aws-sdk-resources (2.10.52) | |
| aws-sdk-v1 (1.67.0) | |
| aws-sigv4 (1.0.2) | |
| bigdecimal (1.2.4) | |
| bundler (1.15.4) | |
| colored (1.2) | |
| cri (2.6.1) |
OlderNewer