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
| omnibus-chef> bundle exec kitchen converge chef-windows-2008r2-standard | |
| -----> Starting Kitchen (v1.4.1) | |
| -----> Converging <chef-windows-2008r2-standard>... | |
| Preparing files for transfer | |
| Preparing dna.json | |
| Resolving cookbook dependencies with Berkshelf 3.2.4... | |
| Removing non-cookbook files before transfer | |
| Preparing validation.pem | |
| Preparing client.rb | |
| -----> Installing Chef Omnibus (install only if missing) |
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
| # cookbooks/analytics_dev/resources/packagecloud_repository.rb | |
| provides :packagecloud_repository | |
| attribute :user | |
| attribute :repo | |
| actions :setup | |
| # cookbooks/analytics_dev/providers/packagecloud_repository.rb | |
| provides :packagecloud_repository | |
| use_inline_resources | |
| include Chef::DSL::IncludeRecipe |
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 'chef/provisioning/docker_driver' | |
| # Create the hosts | |
| machine_batch 'docker hosts' do | |
| machine "dockerhost1" do | |
| recipe "docker" | |
| attribute %w(docker host), 'tcp://localhost:5555' | |
| end | |
| machine "dockerhost2" do | |
| recipe "docker" |
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
| # | |
| # First create a provisioners group so the ACLs are all correct | |
| # | |
| chef_group 'provisioners' do | |
| end | |
| # To be able to recreate the provisioners group | |
| chef_acl 'groups' do | |
| rights :create, groups: 'provisioners' | |
| end | |
| # To be able to add others to the provisioners group |
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
| # | |
| # Author:: John Keiser (<jkeiser@opscode.com>) | |
| # Copyright:: Copyright (c) 2012 Opscode, Inc. | |
| # License:: Apache License, Version 2.0 | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.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
| [2015-02-24T11:38:58-08:00] DEBUG: Initiating PUT to https://api.opscode.com/organizations/chef-provisioning/nodes/mario/_acl/read | |
| [2015-02-24T11:38:58-08:00] DEBUG: ---- HTTP Request Header Data: ---- | |
| [2015-02-24T11:38:58-08:00] DEBUG: Content-Type: application/json | |
| [2015-02-24T11:38:58-08:00] DEBUG: Accept: application/json | |
| [2015-02-24T11:38:58-08:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
| [2015-02-24T11:38:58-08:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0; | |
| [2015-02-24T11:38:58-08:00] DEBUG: X-OPS-USERID: jkeiser | |
| [2015-02-24T11:38:58-08:00] DEBUG: X-OPS-TIMESTAMP: 2015-02-24T19:38:58Z | |
| [2015-02-24T11:38:58-08:00] DEBUG: X-OPS-CONTENT-HASH: L7bYdjfqAW5iyjDDNVwmFtQiqVQ= | |
| [2015-02-24T11:38:58-08:00] DEBUG: X-OPS-AUTHORIZATION-1: hiRFGM9C2VbN5CWHWAX7PKWF8Q1coNqhfFG7TUmz71C8mO2XwU3xQzMQWgip |
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
| ```ruby | |
| # recipes/zones.rb | |
| AVAILABILITY_ZONES.each do |zone| | |
| with_driver "aws::#{zone}" do | |
| aws_subnet "" do | |
| end | |
| aws_vpc "" do | |
| end | |
| machine_image "base_image_#{zone}" do |
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
| name 'mycookbook' | |
| depends 'crazytown' |
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 AWSRoute53RS < LWRPBase | |
| def initialize(*args) | |
| # parse @name | |
| end | |
| attribute :zone | |
| attribute :subdomain | |
| attribute :type | |
| attribute :ttl |
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
| # Using the resource: | |
| # Create/Update: this will create or update a file. | |
| # This is a straight up "I want the file to look like this." | |
| # It should look pretty familiar. | |
| file '/x.txt' do | |
| content 'hi' | |
| end | |
| # Read: You can use the functionality purely for reading |