├── .gitignore ├── .rvmrc ├── Changelog ├── Gemfile ├── Gemfile.lock ├── README.textile ├── Rakefile ├── TODO ├── Vagrantfile ├── config └── puppet │ ├── fileserver.conf │ └── puppet.conf ├── features ├── checker.feature ├── chef.feature ├── command.feature ├── node.feature ├── puppet.feature ├── step_definitions │ ├── centos │ │ └── checks.rb │ ├── checker.rb │ ├── chef.rb │ ├── command.rb │ ├── node.rb │ └── puppet.rb └── support │ └── env.rb ├── fixtures ├── chef │ ├── attributes.json │ ├── cookbooks │ │ └── test │ │ │ ├── attributes │ │ │ └── default.rb │ │ │ └── recipes │ │ │ ├── attribute.rb │ │ │ ├── data_bag.rb │ │ │ ├── default.rb │ │ │ └── role.rb │ ├── cookbooks2 │ │ └── test2 │ │ │ └── recipes │ │ │ └── default.rb │ ├── data_bags │ │ ├── bag1 │ │ │ ├── item1.json │ │ │ └── item2.json │ │ └── bag2 │ │ │ ├── item1.json │ │ │ └── item2.json │ ├── data_bags2 │ │ └── bag3 │ │ │ └── item3.json │ ├── roles │ │ └── test.rb │ └── roles2 │ │ └── test2.rb └── puppet │ ├── conf │ ├── fileserver.conf │ ├── puppet.conf │ ├── puppet_exec.conf │ ├── puppet_fileserver.conf │ ├── puppet_modules.conf │ └── puppet_template.conf │ ├── manifests │ ├── fileserver │ │ └── conf │ │ │ └── test_fileserver │ ├── nodes │ │ └── test_node.pp │ ├── site.pp │ ├── templates │ │ └── template_test │ ├── test.pp │ ├── test_fileserver.pp │ ├── test_install.pp │ ├── test_module.pp │ ├── test_service.pp │ └── test_template.pp │ └── modules │ └── test_module │ └── manifests │ └── init.pp ├── lib ├── ping.rb ├── toft.rb └── toft │ ├── chef │ ├── chef_attributes.rb │ └── chef_runner.rb │ ├── command_executor.rb │ ├── file_checker.rb │ ├── node.rb │ ├── node_controller.rb │ ├── puppet │ └── puppet_runner.rb │ └── version.rb ├── scripts ├── bin │ ├── centos │ │ ├── lxc-prepare-host │ │ └── provision_vagrant │ ├── share │ │ ├── install-chef-ubuntu.sh │ │ └── lxc-create-centos-image │ └── ubuntu │ │ ├── lxc-create-ubuntu-image │ │ ├── lxc-prepare-host │ │ └── provision_vagrant └── lxc-templates │ ├── files │ └── rc.local │ ├── lxc-centos-6 │ ├── lxc-lenny │ ├── lxc-lucid │ └── lxc-natty ├── spec ├── fixtures │ └── illegal_syntax.json ├── spec_helper.rb └── toft │ ├── chef │ ├── chef_attributes_spec.rb │ └── chef_runner_spec.rb │ ├── node_spec.rb │ └── puppet │ └── puppet_runner_spec.rb └── toft.gemspec /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/.gitignore -------------------------------------------------------------------------------- /.rvmrc: -------------------------------------------------------------------------------- 1 | rvm use 1.8.7-p352@toft 2 | -------------------------------------------------------------------------------- /Changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/Changelog -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /README.textile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/README.textile -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/Rakefile -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/TODO -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/Vagrantfile -------------------------------------------------------------------------------- /config/puppet/fileserver.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/config/puppet/fileserver.conf -------------------------------------------------------------------------------- /config/puppet/puppet.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/config/puppet/puppet.conf -------------------------------------------------------------------------------- /features/checker.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/checker.feature -------------------------------------------------------------------------------- /features/chef.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/chef.feature -------------------------------------------------------------------------------- /features/command.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/command.feature -------------------------------------------------------------------------------- /features/node.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/node.feature -------------------------------------------------------------------------------- /features/puppet.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/puppet.feature -------------------------------------------------------------------------------- /features/step_definitions/centos/checks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/step_definitions/centos/checks.rb -------------------------------------------------------------------------------- /features/step_definitions/checker.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/step_definitions/checker.rb -------------------------------------------------------------------------------- /features/step_definitions/chef.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/step_definitions/chef.rb -------------------------------------------------------------------------------- /features/step_definitions/command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/step_definitions/command.rb -------------------------------------------------------------------------------- /features/step_definitions/node.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/step_definitions/node.rb -------------------------------------------------------------------------------- /features/step_definitions/puppet.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/step_definitions/puppet.rb -------------------------------------------------------------------------------- /features/support/env.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/features/support/env.rb -------------------------------------------------------------------------------- /fixtures/chef/attributes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/attributes.json -------------------------------------------------------------------------------- /fixtures/chef/cookbooks/test/attributes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/cookbooks/test/attributes/default.rb -------------------------------------------------------------------------------- /fixtures/chef/cookbooks/test/recipes/attribute.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/cookbooks/test/recipes/attribute.rb -------------------------------------------------------------------------------- /fixtures/chef/cookbooks/test/recipes/data_bag.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/cookbooks/test/recipes/data_bag.rb -------------------------------------------------------------------------------- /fixtures/chef/cookbooks/test/recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/cookbooks/test/recipes/default.rb -------------------------------------------------------------------------------- /fixtures/chef/cookbooks/test/recipes/role.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/cookbooks/test/recipes/role.rb -------------------------------------------------------------------------------- /fixtures/chef/cookbooks2/test2/recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/cookbooks2/test2/recipes/default.rb -------------------------------------------------------------------------------- /fixtures/chef/data_bags/bag1/item1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/data_bags/bag1/item1.json -------------------------------------------------------------------------------- /fixtures/chef/data_bags/bag1/item2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/data_bags/bag1/item2.json -------------------------------------------------------------------------------- /fixtures/chef/data_bags/bag2/item1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/data_bags/bag2/item1.json -------------------------------------------------------------------------------- /fixtures/chef/data_bags/bag2/item2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/data_bags/bag2/item2.json -------------------------------------------------------------------------------- /fixtures/chef/data_bags2/bag3/item3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/data_bags2/bag3/item3.json -------------------------------------------------------------------------------- /fixtures/chef/roles/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/roles/test.rb -------------------------------------------------------------------------------- /fixtures/chef/roles2/test2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/chef/roles2/test2.rb -------------------------------------------------------------------------------- /fixtures/puppet/conf/fileserver.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/conf/fileserver.conf -------------------------------------------------------------------------------- /fixtures/puppet/conf/puppet.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/conf/puppet.conf -------------------------------------------------------------------------------- /fixtures/puppet/conf/puppet_exec.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/conf/puppet_exec.conf -------------------------------------------------------------------------------- /fixtures/puppet/conf/puppet_fileserver.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/conf/puppet_fileserver.conf -------------------------------------------------------------------------------- /fixtures/puppet/conf/puppet_modules.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/conf/puppet_modules.conf -------------------------------------------------------------------------------- /fixtures/puppet/conf/puppet_template.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/conf/puppet_template.conf -------------------------------------------------------------------------------- /fixtures/puppet/manifests/fileserver/conf/test_fileserver: -------------------------------------------------------------------------------- 1 | This is a test for the fileserver config 2 | -------------------------------------------------------------------------------- /fixtures/puppet/manifests/nodes/test_node.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/manifests/nodes/test_node.pp -------------------------------------------------------------------------------- /fixtures/puppet/manifests/site.pp: -------------------------------------------------------------------------------- 1 | import "nodes/*.pp" 2 | -------------------------------------------------------------------------------- /fixtures/puppet/manifests/templates/template_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/manifests/templates/template_test -------------------------------------------------------------------------------- /fixtures/puppet/manifests/test.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/manifests/test.pp -------------------------------------------------------------------------------- /fixtures/puppet/manifests/test_fileserver.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/manifests/test_fileserver.pp -------------------------------------------------------------------------------- /fixtures/puppet/manifests/test_install.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/manifests/test_install.pp -------------------------------------------------------------------------------- /fixtures/puppet/manifests/test_module.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/manifests/test_module.pp -------------------------------------------------------------------------------- /fixtures/puppet/manifests/test_service.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/manifests/test_service.pp -------------------------------------------------------------------------------- /fixtures/puppet/manifests/test_template.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/manifests/test_template.pp -------------------------------------------------------------------------------- /fixtures/puppet/modules/test_module/manifests/init.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/fixtures/puppet/modules/test_module/manifests/init.pp -------------------------------------------------------------------------------- /lib/ping.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/ping.rb -------------------------------------------------------------------------------- /lib/toft.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/toft.rb -------------------------------------------------------------------------------- /lib/toft/chef/chef_attributes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/toft/chef/chef_attributes.rb -------------------------------------------------------------------------------- /lib/toft/chef/chef_runner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/toft/chef/chef_runner.rb -------------------------------------------------------------------------------- /lib/toft/command_executor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/toft/command_executor.rb -------------------------------------------------------------------------------- /lib/toft/file_checker.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/toft/file_checker.rb -------------------------------------------------------------------------------- /lib/toft/node.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/toft/node.rb -------------------------------------------------------------------------------- /lib/toft/node_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/toft/node_controller.rb -------------------------------------------------------------------------------- /lib/toft/puppet/puppet_runner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/lib/toft/puppet/puppet_runner.rb -------------------------------------------------------------------------------- /lib/toft/version.rb: -------------------------------------------------------------------------------- 1 | module Toft 2 | VERSION = "0.0.13" 3 | end 4 | -------------------------------------------------------------------------------- /scripts/bin/centos/lxc-prepare-host: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/bin/centos/lxc-prepare-host -------------------------------------------------------------------------------- /scripts/bin/centos/provision_vagrant: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/bin/centos/provision_vagrant -------------------------------------------------------------------------------- /scripts/bin/share/install-chef-ubuntu.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/bin/share/install-chef-ubuntu.sh -------------------------------------------------------------------------------- /scripts/bin/share/lxc-create-centos-image: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/bin/share/lxc-create-centos-image -------------------------------------------------------------------------------- /scripts/bin/ubuntu/lxc-create-ubuntu-image: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/bin/ubuntu/lxc-create-ubuntu-image -------------------------------------------------------------------------------- /scripts/bin/ubuntu/lxc-prepare-host: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/bin/ubuntu/lxc-prepare-host -------------------------------------------------------------------------------- /scripts/bin/ubuntu/provision_vagrant: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/bin/ubuntu/provision_vagrant -------------------------------------------------------------------------------- /scripts/lxc-templates/files/rc.local: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/lxc-templates/files/rc.local -------------------------------------------------------------------------------- /scripts/lxc-templates/lxc-centos-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/lxc-templates/lxc-centos-6 -------------------------------------------------------------------------------- /scripts/lxc-templates/lxc-lenny: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/lxc-templates/lxc-lenny -------------------------------------------------------------------------------- /scripts/lxc-templates/lxc-lucid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/lxc-templates/lxc-lucid -------------------------------------------------------------------------------- /scripts/lxc-templates/lxc-natty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/scripts/lxc-templates/lxc-natty -------------------------------------------------------------------------------- /spec/fixtures/illegal_syntax.json: -------------------------------------------------------------------------------- 1 | illegal json file -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/toft/chef/chef_attributes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/spec/toft/chef/chef_attributes_spec.rb -------------------------------------------------------------------------------- /spec/toft/chef/chef_runner_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/spec/toft/chef/chef_runner_spec.rb -------------------------------------------------------------------------------- /spec/toft/node_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/spec/toft/node_spec.rb -------------------------------------------------------------------------------- /spec/toft/puppet/puppet_runner_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/spec/toft/puppet/puppet_runner_spec.rb -------------------------------------------------------------------------------- /toft.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/exceedhl/toft/HEAD/toft.gemspec --------------------------------------------------------------------------------