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
| --- | |
| :backends: | |
| - json | |
| - yaml | |
| :json: | |
| :datadir: /etc/puppet/jsondata | |
| :yaml: | |
| :datadir: /etc/puppet/hieradata | |
| :hierarchy: | |
| - "%{clientcert}" |
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
| { | |
| "ntp::autoupdate" : true, | |
| "ntp::enable" : true, | |
| "ntp::restrict": [ | |
| "-7 ::1" | |
| ], | |
| "ntp::servers" : [ | |
| "jsondemo.example.com iburst", |
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 bats | |
| @test "git binary is found in PATH" { | |
| run which git | |
| [ "$status" -eq 0 ] | |
| } |
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
| --- | |
| driver: | |
| name: vagrant | |
| provisioner: | |
| name: chef_solo | |
| platforms: | |
| - name: ubuntu-12.04 | |
| - name: centos-6.4 |
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
| require 'serverspec' | |
| # Required by serverspec | |
| set :backend, :exec | |
| describe "Git Daemon" do | |
| it "is listening on port 9418" do | |
| expect(port(9418)).to be_listening | |
| 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
| include_recipe "git" | |
| include_recipe "runit" | |
| package "git-daemon-run" | |
| runit_service "git-daemon" do | |
| sv_templates false | |
| 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
| gem install r10k --no-ri --no-rdoc | |
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
| sudo yum install patch libxml2-devel libxslt | |
| sudo /opt/chef/embedded/bin/gem install knife-ec2 --no-ri --no-rdoc | |
| # Add the following to knife.rb | |
| # region: oregon | |
| knife[:aws_access_key_id] = "Your AWS Access Key ID" | |
| knife[:aws_secret_access_key] = "Your AWS Secret Access Key" | |
| knife[:region] = "us-west-2" | |
| #validate |
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 nginx::vhost ( | |
| $port = 80, | |
| $site_domain | |
| ){ | |
| include nginx | |
| file { "/etc/nginx/conf.d/${name}.conf": | |
| content => template('nginx/vhost.conf.erb'), | |
| notify => Service['nginx'], |
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
| server { | |
| listen <%= @port %>; | |
| root /var/www/<%= @name %>; | |
| server_name <%= @site_domain %>; | |
| } | |