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 'spec_helper' | |
| describe command('which chef-solo') do | |
| it { | |
| begin | |
| should return_exit_status(0) | |
| rescue => e | |
| puts e.message | |
| puts "======= Installing Omnibus Chef..." | |
| cmd = Serverspec::Type::Command.new('curl -L https://www.opscode.com/chef/install.sh | sudo bash') |
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 | |
| #^syntax detection | |
| site 'http://community.opscode.com/api/v1' | |
| cookbook 'partial_search' | |
| cookbook 'smartmachine_functions' | |
| cookbook 'monit_bin' | |
| cookbook 'smf' |
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
| 192.168.2.1 | |
| 192.168.2.2 |
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
| source "https://rubygems.org" | |
| gem 'omnibus' |
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
| > cron.minute "abcde" | |
| => "abcde" |
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 'sinatra' | |
| require 'sinatra_auth_github' | |
| set :public_folder, File.dirname(__FILE__) + '/build/html' | |
| use Rack::Session::Cookie, | |
| :secret => Digest::SHA1.hexdigest(rand.to_s), | |
| :expire_after => 3600 | |
| set :github_options, { | |
| :scopes => "user", |
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
| service 'httpd' do | |
| action :start | |
| end | |
| file '/tmp/hoge' do | |
| owner 'root' | |
| group 'root' | |
| mode '0600' | |
| 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
| require 'webrick' | |
| def whyrun_supported? | |
| true | |
| end | |
| action :create do | |
| if @current_resource.crypted_passwd | |
| Chef::Log.warn "====== Found http_auth user #{@new_resource.user}" | |
| salt = @current_resource.crypted_passwd[0..1] |
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 'webrick' | |
| def whyrun_supported? | |
| true | |
| end | |
| action :create do | |
| if @current_resource.crypted_passwd | |
| Chef::Log.warn "====== Found http_auth user #{@new_resource.user}" | |
| salt = @current_resource.crypted_passwd[0..1] |
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
| hoge:iLWIQVkBPUswQ |