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
| # functions/myfunction.pp | |
| function mymodule::myfunction(Array[String] $domains) >> Array { | |
| $result = $domains.map |$domain| { | |
| { | |
| "${domain}/.../*" => { 'include' => true } | |
| } | |
| } | |
| $result |
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
| webserver: { | |
| port: 8080 | |
| [... other SSL related options ...] | |
| } |
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
| package uuidutils | |
| import ( | |
| "fmt" | |
| "github.com/google/uuid" | |
| ) | |
| // GetNewRandomUUID Generate a new random uuid | |
| func GetNewRandomUUID() (nuuid string, err 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
| diff --git a/.bundle/ruby/2.3.0/gems/bolt-0.5.0/lib/bolt/node/ssh.rb b/.bundle/ruby/2.3.0/gems/bolt-0.5.0/lib/bolt/node/ssh.rb | |
| index d4b33ea..ffd7168 100644 | |
| --- a/.bundle/ruby/2.3.0/gems/bolt-0.5.0/lib/bolt/node/ssh.rb | |
| +++ b/.bundle/ruby/2.3.0/gems/bolt-0.5.0/lib/bolt/node/ssh.rb | |
| @@ -1,4 +1,5 @@ | |
| require 'net/ssh' | |
| +require 'net/ssh/krb' | |
| require 'net/sftp' | |
| require 'json' | |
| require 'bolt/node/result' |
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
| version: 5 | |
| defaults: | |
| data_hash: 'yaml_data' | |
| hierarchy: | |
| - name: "EYAML backend" | |
| lookup_key: 'eyaml_lookup_key' | |
| paths: | |
| - "default.yaml" |
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 mymodule { | |
| mytype { "title": | |
| param1 => "FOO" | |
| } | |
| } |
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
| #!/usr/bin/env ruby | |
| ENV['GEM_PATH'] = "/path/to/directory" | |
| require 'mygem' | |
| if __FILE__ == $0 | |
| 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
| define servicedependency { | |
| hostgroup_name httpd_worker,httpd_proxy | |
| service_description check httpd proc | |
| dependent_host_name http-client | |
| dependent_service_description check get http app health,check get http app statistics | |
| execution_failure_criteria w,u,c | |
| notification_failure_criteria w,u,c | |
| } |
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
| # Install and configure Apache HTTP server with default values | |
| include apache |
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
| include apache | |
| # Configure a virtual host to use SSL and specific SSL certificates | |
| apache::vhost { 'cert.example.com': | |
| port => '443', | |
| docroot => '/var/www/cert', | |
| ssl => true, | |
| ssl_cert => '/etc/ssl/fourth.example.com.cert', | |
| ssl_key => '/etc/ssl/fourth.example.com.key', | |
| } |