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
| On local system, ~root/.ssh/config: | |
| Host chef_server | |
| IdentityFile /root/.ssh/chef_tunnel | |
| User chef_client | |
| Hostname gateway.example.com | |
| Port 2022 # open port 2022 on your firewall to NAT to 22 on chef server | |
| LocalForward 4400 my-chef-server:4000 # chef | |
| LocalForward 4401 my-chef-server:4001 # openid | |
| ### end .ssh/config ### |
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
| $ ssh-keygen -f some_key -C 'this key is awesome' | |
| Generating public/private rsa key pair. | |
| Enter passphrase (empty for no passphrase): | |
| Enter same passphrase again: | |
| Your identification has been saved in some_key. | |
| Your public key has been saved in some_key.pub. | |
| The key fingerprint is: | |
| 9c:28:d3:69:81:a7:37:8b:1f:21:48:0d:05:72:55:40 this key is awesome | |
| The key's randomart image is: | |
| +--[ RSA 2048]----+ |
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
| "interfaces": { | |
| "vmnet1": { | |
| "flags": [ | |
| "UP", | |
| "BROADCAST", | |
| "SMART", | |
| "RUNNING", | |
| "SIMPLEX", | |
| "MULTICAST" | |
| ], |
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 :php_app, :docroot, :canonical_hostname => nil, :template => "php/php.conf.erb" do | |
| application_name = params[:name] | |
| include_recipe "apache2" | |
| include_recipe "apache2::mod_rewrite" | |
| include_recipe "apache2::mod_deflate" | |
| include_recipe "apache2::mod_headers" | |
| template "/etc/apache2/sites-available/#{params[:name]}.conf" 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
| %{portmap nfslock rpcbind}.each do |pkg| | |
| package pkg do | |
| action :upgrade | |
| end | |
| 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
| Host * | |
| Protocol 2 | |
| ForwardAgent yes | |
| TCPKeepAlive yes | |
| ServerAliveInterval 240 | |
| PubkeyAuthentication yes | |
| IdentityFile /home/username/.ssh/id_rsa | |
| User username |
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
| resources in cookbook: | |
| user "dnscache" do | |
| uid 9997 | |
| case node[:platform] | |
| when "ubuntu","debian" | |
| gid "nogroup" | |
| when "redhat", "centos" | |
| gid "nobody" | |
| else |
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
| execute "mysql-stop" do | |
| command "/etc/init.d/mysql stop" | |
| action :nothing | |
| end | |
| execute "mysql-start" do | |
| command "/etc/init.d/mysql start" | |
| action :nothing | |
| 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
| /usr/lib/ruby/gems/1.8/gems/chef-server-0.5.4/lib/views/nodes/index.html.haml | |
| - throw_content(:header, "Node List") | |
| %table | |
| - @node_list.each do |node| | |
| %tr | |
| %td | |
| .node | |
| %a{ :href => url(:node, { :id => node.gsub(/\./, "_") }) } | |
| = node | |
| %td |
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
| mount "/mnt/test" do | |
| device "/dev/exportvg/testlv" | |
| fstype "ext3" | |
| action :mount | |
| end | |
| $ mount | grep testlv | |
| /dev/mapper/exportvg-testlv on /mnt/test type ext3 (rw) |
OlderNewer