bebox 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +78 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +163 -0
- data/LICENSE +21 -0
- data/README.md +372 -0
- data/Rakefile +8 -0
- data/bebox.gemspec +40 -0
- data/bin/bebox +5 -0
- data/lib/bebox/cli.rb +42 -0
- data/lib/bebox/commands/commands_helper.rb +33 -0
- data/lib/bebox/commands/environment_commands.rb +46 -0
- data/lib/bebox/commands/general_commands.rb +24 -0
- data/lib/bebox/commands/node_commands.rb +68 -0
- data/lib/bebox/commands/prepare_commands.rb +59 -0
- data/lib/bebox/commands/project_commands.rb +44 -0
- data/lib/bebox/commands/provision_commands.rb +145 -0
- data/lib/bebox/environment.rb +114 -0
- data/lib/bebox/logger.rb +51 -0
- data/lib/bebox/node.rb +308 -0
- data/lib/bebox/profile.rb +102 -0
- data/lib/bebox/project.rb +259 -0
- data/lib/bebox/provision.rb +257 -0
- data/lib/bebox/role.rb +103 -0
- data/lib/bebox/version.rb +3 -0
- data/lib/bebox/wizards/environment_wizard.rb +45 -0
- data/lib/bebox/wizards/node_wizard.rb +163 -0
- data/lib/bebox/wizards/profile_wizard.rb +91 -0
- data/lib/bebox/wizards/project_wizard.rb +175 -0
- data/lib/bebox/wizards/provision_wizard.rb +80 -0
- data/lib/bebox/wizards/role_wizard.rb +97 -0
- data/lib/bebox.rb +2 -0
- data/lib/deb/puppet_3.6.0/augeas-lenses_0.10.0-0ubuntu4_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/debconf-utils_1.5.42ubuntu1_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/facter_2.0.1-1puppetlabs1_amd64.deb +0 -0
- data/lib/deb/puppet_3.6.0/hiera_1.3.2-1puppetlabs1_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/libaugeas-ruby1.8_0.3.0-1.1ubuntu4_amd64.deb +0 -0
- data/lib/deb/puppet_3.6.0/libaugeas-ruby_0.3.0-1.1ubuntu4_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/libaugeas0_0.10.0-0ubuntu4_amd64.deb +0 -0
- data/lib/deb/puppet_3.6.0/libjson-ruby_1.6.3-1_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/libruby1.8_1.8.7.352-2ubuntu1.4_amd64.deb +0 -0
- data/lib/deb/puppet_3.6.0/libruby_4.8_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/libshadow-ruby1.8_1.4.1-8build1_amd64.deb +0 -0
- data/lib/deb/puppet_3.6.0/puppet-common_3.6.0-1puppetlabs1_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/puppet_3.6.0-1puppetlabs1_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/ruby-json_1.6.3-1_amd64.deb +0 -0
- data/lib/deb/puppet_3.6.0/ruby-rgen_0.6.5-1puppetlabs1_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/ruby1.8_1.8.7.352-2ubuntu1.4_amd64.deb +0 -0
- data/lib/deb/puppet_3.6.0/ruby_4.8_all.deb +0 -0
- data/lib/deb/puppet_3.6.0/virt-what_1.11-1_amd64.deb +0 -0
- data/lib/templates/node/Vagrantfile.erb +18 -0
- data/lib/templates/node/deploy_vagrant_node.erb +3 -0
- data/lib/templates/node/node.yml.erb +3 -0
- data/lib/templates/node/prepared_node.yml.erb +4 -0
- data/lib/templates/node/provisioned_node.yml.erb +4 -0
- data/lib/templates/project/Capfile.erb +2 -0
- data/lib/templates/project/Gemfile.erb +5 -0
- data/lib/templates/project/config/deploy/environment.erb +40 -0
- data/lib/templates/project/config/deploy/vagrant.erb +42 -0
- data/lib/templates/project/config/deploy.erb +120 -0
- data/lib/templates/project/dot_bebox.erb +4 -0
- data/lib/templates/project/gitignore.erb +7 -0
- data/lib/templates/project/ubuntu_dependencies +10 -0
- data/lib/templates/puppet/default_profiles/base/fundamental/ruby/Puppetfile +0 -0
- data/lib/templates/puppet/default_profiles/base/fundamental/ruby/manifests/init.pp +24 -0
- data/lib/templates/puppet/default_profiles/base/fundamental/sudo/Puppetfile +0 -0
- data/lib/templates/puppet/default_profiles/base/fundamental/sudo/manifests/init.pp +22 -0
- data/lib/templates/puppet/default_profiles/base/fundamental/users/Puppetfile +0 -0
- data/lib/templates/puppet/default_profiles/base/fundamental/users/manifests/init.pp +18 -0
- data/lib/templates/puppet/default_profiles/base/security/fail2ban/Puppetfile +2 -0
- data/lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp +28 -0
- data/lib/templates/puppet/default_profiles/base/security/iptables/Puppetfile +2 -0
- data/lib/templates/puppet/default_profiles/base/security/iptables/manifests/init.pp +27 -0
- data/lib/templates/puppet/default_profiles/base/security/ssh/Puppetfile +2 -0
- data/lib/templates/puppet/default_profiles/base/security/ssh/manifests/init.pp +30 -0
- data/lib/templates/puppet/default_profiles/base/security/sysctl/Puppetfile +2 -0
- data/lib/templates/puppet/default_profiles/base/security/sysctl/manifests/init.pp +20 -0
- data/lib/templates/puppet/default_profiles/base/users/ssh/Puppetfile +2 -0
- data/lib/templates/puppet/default_profiles/base/users/ssh/manifests/init.pp +47 -0
- data/lib/templates/puppet/default_profiles/base/users/users/Puppetfile +0 -0
- data/lib/templates/puppet/default_profiles/base/users/users/manifests/init.pp +18 -0
- data/lib/templates/puppet/default_roles/fundamental/manifests/init.pp +16 -0
- data/lib/templates/puppet/default_roles/security/manifests/init.pp +17 -0
- data/lib/templates/puppet/default_roles/users/manifests/init.pp +15 -0
- data/lib/templates/puppet/profiles/Puppetfile.erb +24 -0
- data/lib/templates/puppet/profiles/manifests/init.pp.erb +17 -0
- data/lib/templates/puppet/roles/manifests/init.pp.erb +14 -0
- data/lib/templates/puppet/step-0/Puppetfile.erb +5 -0
- data/lib/templates/puppet/step-0/hiera/data/common.yaml.erb +26 -0
- data/lib/templates/puppet/step-0/hiera/data/environment.yaml.erb +26 -0
- data/lib/templates/puppet/step-0/hiera/data/node.yaml.erb +26 -0
- data/lib/templates/puppet/step-0/hiera/hiera.yaml.erb +11 -0
- data/lib/templates/puppet/step-0/manifests/node.erb +5 -0
- data/lib/templates/puppet/step-0/manifests/site.pp.erb +15 -0
- data/lib/templates/puppet/step-0/modules/rbenv/AUTHORS +11 -0
- data/lib/templates/puppet/step-0/modules/rbenv/CHANGELOG.md +70 -0
- data/lib/templates/puppet/step-0/modules/rbenv/Gemfile +8 -0
- data/lib/templates/puppet/step-0/modules/rbenv/Gemfile.lock +28 -0
- data/lib/templates/puppet/step-0/modules/rbenv/Modulefile +7 -0
- data/lib/templates/puppet/step-0/modules/rbenv/README.md +173 -0
- data/lib/templates/puppet/step-0/modules/rbenv/Rakefile +22 -0
- data/lib/templates/puppet/step-0/modules/rbenv/TODO +10 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/autospec +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/facter +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/filebucket +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/hiera +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/htmldiff +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/ldiff +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/pi +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppet +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppet-lint +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppet-module +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetca +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetd +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetdoc +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetmasterd +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetqd +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetrun +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/rake +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/ralsh +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/rspec +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/bin/rspec-puppet-init +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/lib/puppet/provider/rbenvgem/default.rb +50 -0
- data/lib/templates/puppet/step-0/modules/rbenv/lib/puppet/type/rbenvgem.rb +62 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/bundle.pp +36 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/client.pp +48 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/compile.pp +102 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/definition.pp +31 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/dependencies/centos.pp +25 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/dependencies/suse.pp +28 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/dependencies/ubuntu.pp +17 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/dependencies.pp +8 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/gem.pp +29 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/install.pp +55 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/plugin/rbenvvars.pp +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/plugin/rubybuild.pp +16 -0
- data/lib/templates/puppet/step-0/modules/rbenv/manifests/plugin.pp +40 -0
- data/lib/templates/puppet/step-0/modules/rbenv/metadata.json +109 -0
- data/lib/templates/puppet/step-0/modules/rbenv/templates/Gemfile.erb +5 -0
- data/lib/templates/puppet/step-0/modules/rbenv/templates/dot.rbenvrc.erb +8 -0
- data/lib/templates/puppet/step-0/modules/stdlib/CHANGELOG.md +418 -0
- data/lib/templates/puppet/step-0/modules/stdlib/CONTRIBUTING.md +65 -0
- data/lib/templates/puppet/step-0/modules/stdlib/Gemfile +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/Gemfile.lock +166 -0
- data/lib/templates/puppet/step-0/modules/stdlib/LICENSE +19 -0
- data/lib/templates/puppet/step-0/modules/stdlib/Modulefile +11 -0
- data/lib/templates/puppet/step-0/modules/stdlib/README.markdown +1304 -0
- data/lib/templates/puppet/step-0/modules/stdlib/README_DEVELOPER.markdown +35 -0
- data/lib/templates/puppet/step-0/modules/stdlib/README_SPECS.markdown +7 -0
- data/lib/templates/puppet/step-0/modules/stdlib/RELEASE_PROCESS.markdown +24 -0
- data/lib/templates/puppet/step-0/modules/stdlib/Rakefile +18 -0
- data/lib/templates/puppet/step-0/modules/stdlib/checksums.json +349 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/facter_dot_d.rb +202 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/pe_version.rb +53 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/puppet_vardir.rb +26 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/root_home.rb +32 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/util/puppet_settings.rb +21 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/abs.rb +36 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/any2array.rb +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/base64.rb +37 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/bool2num.rb +49 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/capitalize.rb +34 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/chomp.rb +35 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/chop.rb +37 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/concat.rb +41 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/count.rb +22 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/deep_merge.rb +44 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/defined_with_params.rb +35 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/delete.rb +46 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/delete_at.rb +49 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/delete_undef_values.rb +34 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/delete_values.rb +26 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/difference.rb +36 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/dirname.rb +15 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/downcase.rb +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/empty.rb +28 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/ensure_packages.rb +35 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/ensure_resource.rb +45 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/flatten.rb +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/floor.rb +25 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/fqdn_rotate.rb +46 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/get_module_path.rb +17 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/getparam.rb +35 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/getvar.rb +26 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/grep.rb +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/has_interface_with.rb +52 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb +25 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb +25 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/has_key.rb +28 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/hash.rb +41 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/intersection.rb +34 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_array.rb +22 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_bool.rb +22 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_domain_name.rb +50 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_float.rb +30 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_function_available.rb +26 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_hash.rb +22 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_integer.rb +45 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_ip_address.rb +32 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_mac_address.rb +27 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_numeric.rb +75 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_string.rb +26 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/join.rb +41 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/join_keys_to_values.rb +47 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/keys.rb +26 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/loadyaml.rb +20 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/lstrip.rb +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/max.rb +21 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/member.rb +44 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/merge.rb +34 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/min.rb +21 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/num2bool.rb +43 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/parsejson.rb +24 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/parseyaml.rb +24 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/pick.rb +29 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/pick_default.rb +35 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/prefix.rb +45 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/range.rb +88 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/reject.rb +31 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/reverse.rb +28 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/rstrip.rb +32 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/shuffle.rb +46 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/size.rb +48 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/sort.rb +27 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/squeeze.rb +36 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/str2bool.rb +46 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/str2saltedsha512.rb +32 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/strftime.rb +107 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/strip.rb +39 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/suffix.rb +45 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/swapcase.rb +39 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/time.rb +49 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb +28 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/type.rb +50 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/union.rb +34 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/unique.rb +51 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/upcase.rb +41 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/uriescape.rb +35 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb +56 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_array.rb +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_augeas.rb +81 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb +34 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_cmd.rb +48 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_hash.rb +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb +48 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_ipv6_address.rb +49 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_re.rb +40 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_slength.rb +71 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_string.rb +33 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/values.rb +39 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/values_at.rb +98 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/zip.rb +65 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/provider/file_line/ruby.rb +83 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/type/anchor.rb +46 -0
- data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/type/file_line.rb +79 -0
- data/lib/templates/puppet/step-0/modules/stdlib/manifests/init.pp +20 -0
- data/lib/templates/puppet/step-0/modules/stdlib/manifests/stages.pp +43 -0
- data/lib/templates/puppet/step-0/modules/stdlib/metadata.json +111 -0
- data/lib/templates/puppet/step-0/modules/sudo/.fixtures.yml +5 -0
- data/lib/templates/puppet/step-0/modules/sudo/.gemfile +14 -0
- data/lib/templates/puppet/step-0/modules/sudo/.gemfile.lock +43 -0
- data/lib/templates/puppet/step-0/modules/sudo/.travis.yml +34 -0
- data/lib/templates/puppet/step-0/modules/sudo/LICENSE +13 -0
- data/lib/templates/puppet/step-0/modules/sudo/Modulefile +9 -0
- data/lib/templates/puppet/step-0/modules/sudo/README.md +171 -0
- data/lib/templates/puppet/step-0/modules/sudo/Rakefile +1 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.aix +90 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.archlinux +90 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.deb +90 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.freebsd +98 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.omnios +90 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.rhel5 +97 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.rhel6 +115 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.solaris +90 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.suse +81 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.ubuntu +30 -0
- data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.wheezy +17 -0
- data/lib/templates/puppet/step-0/modules/sudo/lib/augeas/lenses/fixedsudoers.aug +520 -0
- data/lib/templates/puppet/step-0/modules/sudo/manifests/allow.pp +76 -0
- data/lib/templates/puppet/step-0/modules/sudo/manifests/conf.pp +105 -0
- data/lib/templates/puppet/step-0/modules/sudo/manifests/configs.pp +24 -0
- data/lib/templates/puppet/step-0/modules/sudo/manifests/init.pp +151 -0
- data/lib/templates/puppet/step-0/modules/sudo/manifests/package/aix.pp +46 -0
- data/lib/templates/puppet/step-0/modules/sudo/manifests/package/solaris.pp +60 -0
- data/lib/templates/puppet/step-0/modules/sudo/manifests/package.pp +61 -0
- data/lib/templates/puppet/step-0/modules/sudo/manifests/params.pp +127 -0
- data/lib/templates/puppet/step-0/modules/sudo/metadata.json +59 -0
- data/lib/templates/puppet/step-0/modules/sudo/templates/users_groups.erb +9 -0
- data/lib/templates/puppet/step-0/modules/users/manifests/init.pp +15 -0
- data/lib/templates/puppet/step-0/modules/users/manifests/user.pp +50 -0
- data/lib/templates/puppet/step-1/Puppetfile.erb +5 -0
- data/lib/templates/puppet/step-1/hiera/data/common.yaml.erb +11 -0
- data/lib/templates/puppet/step-1/hiera/data/environment.yaml.erb +11 -0
- data/lib/templates/puppet/step-1/hiera/data/node.yaml.erb +11 -0
- data/lib/templates/puppet/step-1/hiera/hiera.yaml.erb +11 -0
- data/lib/templates/puppet/step-1/manifests/node.erb +5 -0
- data/lib/templates/puppet/step-1/manifests/site.pp.erb +15 -0
- data/lib/templates/puppet/step-1/modules/users/manifests/init.pp +15 -0
- data/lib/templates/puppet/step-1/modules/users/manifests/user.pp +49 -0
- data/lib/templates/puppet/step-2/Puppetfile.erb +5 -0
- data/lib/templates/puppet/step-2/hiera/data/common.yaml.erb +1 -0
- data/lib/templates/puppet/step-2/hiera/data/environment.yaml.erb +1 -0
- data/lib/templates/puppet/step-2/hiera/data/node.yaml.erb +1 -0
- data/lib/templates/puppet/step-2/hiera/hiera.yaml.erb +11 -0
- data/lib/templates/puppet/step-2/manifests/node.erb +3 -0
- data/lib/templates/puppet/step-2/manifests/site.pp.erb +10 -0
- data/lib/templates/puppet/step-3/Puppetfile.erb +5 -0
- data/lib/templates/puppet/step-3/hiera/data/common.yaml.erb +99 -0
- data/lib/templates/puppet/step-3/hiera/data/environment.yaml.erb +99 -0
- data/lib/templates/puppet/step-3/hiera/data/node.yaml.erb +99 -0
- data/lib/templates/puppet/step-3/hiera/hiera.yaml.erb +11 -0
- data/lib/templates/puppet/step-3/manifests/node.erb +5 -0
- data/lib/templates/puppet/step-3/manifests/site.pp.erb +15 -0
- data/spec/environment_spec.rb +82 -0
- data/spec/factories/environment.rb +20 -0
- data/spec/factories/node.rb +22 -0
- data/spec/factories/profile.rb +10 -0
- data/spec/factories/project.rb +17 -0
- data/spec/factories/provision.rb +13 -0
- data/spec/factories/role.rb +9 -0
- data/spec/fixtures/Capfile.test +2 -0
- data/spec/fixtures/Gemfile.test +5 -0
- data/spec/fixtures/config/deploy/environment.test +35 -0
- data/spec/fixtures/config/deploy/production.test +35 -0
- data/spec/fixtures/config/deploy/staging.test +35 -0
- data/spec/fixtures/config/deploy/vagrant.test +37 -0
- data/spec/fixtures/config/deploy.test +120 -0
- data/spec/fixtures/dot_bebox.test.erb +4 -0
- data/spec/fixtures/dot_gitignore.test +8 -0
- data/spec/fixtures/node/Vagrantfile.test.erb +18 -0
- data/spec/fixtures/node/node_0.test.erb +3 -0
- data/spec/fixtures/node/prepared_node_0.test.erb +4 -0
- data/spec/fixtures/node/provisioned_node_0.test.erb +4 -0
- data/spec/fixtures/node/vagrant_deploy.test +38 -0
- data/spec/fixtures/puppet/hiera/data/node0.server1.test.yaml.test +4 -0
- data/spec/fixtures/puppet/profiles/test/profile_0/Puppetfile.test +24 -0
- data/spec/fixtures/puppet/profiles/test/profile_0/Puppetfile_with_modules.test +20 -0
- data/spec/fixtures/puppet/profiles/test/profile_0/manifests/init.pp.test +17 -0
- data/spec/fixtures/puppet/profiles/test/profile_0/manifests/init_with_content.pp.test +22 -0
- data/spec/fixtures/puppet/roles/manifests/init.pp.test +14 -0
- data/spec/fixtures/puppet/steps/step-0/hiera/data/common.yaml.test +26 -0
- data/spec/fixtures/puppet/steps/step-0/hiera/data/node0.server1.test.yaml.test +0 -0
- data/spec/fixtures/puppet/steps/step-0/hiera/data/pname_env.yaml.test +26 -0
- data/spec/fixtures/puppet/steps/step-0/hiera/data/production.yaml.test +0 -0
- data/spec/fixtures/puppet/steps/step-0/hiera/data/staging.yaml.test +0 -0
- data/spec/fixtures/puppet/steps/step-0/hiera/data/vagrant.yaml.test +0 -0
- data/spec/fixtures/puppet/steps/step-0/hiera/hiera.yaml.test +11 -0
- data/spec/fixtures/puppet/steps/step-0/manifests/site.pp.test +10 -0
- data/spec/fixtures/puppet/steps/step-0/manifests/site_with_node.pp.test +15 -0
- data/spec/fixtures/puppet/steps/step-1/hiera/data/common.yaml.test +11 -0
- data/spec/fixtures/puppet/steps/step-1/hiera/data/node0.server1.test.yaml.test +0 -0
- data/spec/fixtures/puppet/steps/step-1/hiera/data/pname_env.yaml.test +11 -0
- data/spec/fixtures/puppet/steps/step-1/hiera/data/production.yaml.test +0 -0
- data/spec/fixtures/puppet/steps/step-1/hiera/data/staging.yaml.test +0 -0
- data/spec/fixtures/puppet/steps/step-1/hiera/data/vagrant.yaml.test +0 -0
- data/spec/fixtures/puppet/steps/step-1/hiera/hiera.yaml.test +11 -0
- data/spec/fixtures/puppet/steps/step-1/manifests/site.pp.test +10 -0
- data/spec/fixtures/puppet/steps/step-1/manifests/site_with_node.pp.test +15 -0
- data/spec/fixtures/puppet/steps/step-2/Puppetfile.test +6 -0
- data/spec/fixtures/puppet/steps/step-2/hiera/data/common.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-2/hiera/data/node0.server1.test.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-2/hiera/data/pname_env.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-2/hiera/data/production.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-2/hiera/data/staging.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-2/hiera/data/vagrant.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-2/hiera/hiera.yaml.test +11 -0
- data/spec/fixtures/puppet/steps/step-2/manifests/site.pp.test +10 -0
- data/spec/fixtures/puppet/steps/step-2/manifests/site_with_node.pp.test +13 -0
- data/spec/fixtures/puppet/steps/step-2/manifests/site_with_node_role_association.pp.test +16 -0
- data/spec/fixtures/puppet/steps/step-2/modules/profiles/manifests/test/profile_0.pp.test +17 -0
- data/spec/fixtures/puppet/steps/step-2/modules/roles/manifests/role_0.pp.test +16 -0
- data/spec/fixtures/puppet/steps/step-3/hiera/data/common.yaml.test +99 -0
- data/spec/fixtures/puppet/steps/step-3/hiera/data/node0.server1.test.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-3/hiera/data/pname_env.yaml.test +99 -0
- data/spec/fixtures/puppet/steps/step-3/hiera/data/production.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-3/hiera/data/staging.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-3/hiera/data/vagrant.yaml.test +1 -0
- data/spec/fixtures/puppet/steps/step-3/hiera/hiera.yaml.test +11 -0
- data/spec/fixtures/puppet/steps/step-3/manifests/site.pp.test +10 -0
- data/spec/fixtures/puppet/steps/step-3/manifests/site_with_node.pp.test +15 -0
- data/spec/fixtures/puppet/ubuntu_dependencies.test +10 -0
- data/spec/node0.server1.test/prepare_phase_spec.rb +53 -0
- data/spec/node0.server1.test/provision_step_0_spec.rb +46 -0
- data/spec/node0.server1.test/provision_step_1_spec.rb +41 -0
- data/spec/node0.server1.test/provision_step_2_spec.rb +79 -0
- data/spec/node0.server1.test/provision_step_3_spec.rb +76 -0
- data/spec/node_role_spec.rb +20 -0
- data/spec/node_spec.rb +71 -0
- data/spec/node_wizard_spec.rb +22 -0
- data/spec/ordered_phases_spec.rb +55 -0
- data/spec/pre_prepare_spec.rb +78 -0
- data/spec/pre_provision_steps_spec.rb +40 -0
- data/spec/profile_spec.rb +70 -0
- data/spec/project_spec.rb +195 -0
- data/spec/project_wizard_spec.rb +51 -0
- data/spec/puppet_spec_helper.rb +15 -0
- data/spec/role_profiles_spec.rb +40 -0
- data/spec/role_spec.rb +56 -0
- data/spec/spec_helper.rb +37 -0
- data/spec/support/config_specs.yaml.example +2 -0
- data/spec/vagrant_spec_helper.rb +15 -0
- metadata +625 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
## sudoers file.
|
|
2
|
+
##
|
|
3
|
+
## This file MUST be edited with the 'visudo' command as root.
|
|
4
|
+
## Failure to use 'visudo' may result in syntax or file permission errors
|
|
5
|
+
## that prevent sudo from running.
|
|
6
|
+
##
|
|
7
|
+
## See the sudoers man page for the details on how to write a sudoers file.
|
|
8
|
+
##
|
|
9
|
+
|
|
10
|
+
##
|
|
11
|
+
## Host alias specification
|
|
12
|
+
##
|
|
13
|
+
## Groups of machines. These may include host names (optionally with wildcards),
|
|
14
|
+
## IP addresses, network numbers or netgroups.
|
|
15
|
+
# Host_Alias WEBSERVERS = www1, www2, www3
|
|
16
|
+
|
|
17
|
+
##
|
|
18
|
+
## User alias specification
|
|
19
|
+
##
|
|
20
|
+
## Groups of users. These may consist of user names, uids, Unix groups,
|
|
21
|
+
## or netgroups.
|
|
22
|
+
# User_Alias ADMINS = millert, dowdy, mikef
|
|
23
|
+
|
|
24
|
+
##
|
|
25
|
+
## Cmnd alias specification
|
|
26
|
+
##
|
|
27
|
+
## Groups of commands. Often used to group related commands together.
|
|
28
|
+
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
|
|
29
|
+
# /usr/bin/pkill, /usr/bin/top
|
|
30
|
+
|
|
31
|
+
##
|
|
32
|
+
## Defaults specification
|
|
33
|
+
##
|
|
34
|
+
## You may wish to keep some of the following environment variables
|
|
35
|
+
## when running commands via sudo.
|
|
36
|
+
##
|
|
37
|
+
## Locale settings
|
|
38
|
+
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
|
|
39
|
+
##
|
|
40
|
+
## Run X applications through sudo; HOME is used to find the
|
|
41
|
+
## .Xauthority file. Note that other programs use HOME to find
|
|
42
|
+
## configuration files and this may lead to privilege escalation!
|
|
43
|
+
# Defaults env_keep += "HOME"
|
|
44
|
+
##
|
|
45
|
+
## X11 resource path settings
|
|
46
|
+
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
|
|
47
|
+
##
|
|
48
|
+
## Desktop path settings
|
|
49
|
+
# Defaults env_keep += "QTDIR KDEDIR"
|
|
50
|
+
##
|
|
51
|
+
## Allow sudo-run commands to inherit the callers' ConsoleKit session
|
|
52
|
+
# Defaults env_keep += "XDG_SESSION_COOKIE"
|
|
53
|
+
##
|
|
54
|
+
## Uncomment to enable special input methods. Care should be taken as
|
|
55
|
+
## this may allow users to subvert the command being run via sudo.
|
|
56
|
+
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
|
|
57
|
+
##
|
|
58
|
+
## Uncomment to enable logging of a command's output, except for
|
|
59
|
+
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
|
|
60
|
+
# Defaults log_output
|
|
61
|
+
# Defaults!/usr/bin/sudoreplay !log_output
|
|
62
|
+
# Defaults!/usr/local/bin/sudoreplay !log_output
|
|
63
|
+
# Defaults!/sbin/reboot !log_output
|
|
64
|
+
|
|
65
|
+
##
|
|
66
|
+
## Runas alias specification
|
|
67
|
+
##
|
|
68
|
+
|
|
69
|
+
##
|
|
70
|
+
## User privilege specification
|
|
71
|
+
##
|
|
72
|
+
root ALL=(ALL) ALL
|
|
73
|
+
|
|
74
|
+
## Uncomment to allow members of group wheel to execute any command
|
|
75
|
+
# %wheel ALL=(ALL) ALL
|
|
76
|
+
|
|
77
|
+
## Same thing without a password
|
|
78
|
+
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
79
|
+
|
|
80
|
+
## Uncomment to allow members of group sudo to execute any command
|
|
81
|
+
# %sudo ALL=(ALL) ALL
|
|
82
|
+
|
|
83
|
+
## Uncomment to allow any user to run sudo if they know the password
|
|
84
|
+
## of the user they are running the command as (root by default).
|
|
85
|
+
# Defaults targetpw # Ask for the password of the target user
|
|
86
|
+
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
|
|
87
|
+
|
|
88
|
+
## Read drop-in files from /etc/sudoers.d
|
|
89
|
+
## (the '#' here does not indicate a comment)
|
|
90
|
+
#includedir /etc/sudoers.d
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
## sudoers file.
|
|
2
|
+
##
|
|
3
|
+
## This file MUST be edited with the 'visudo' command as root.
|
|
4
|
+
## Failure to use 'visudo' may result in syntax or file permission errors
|
|
5
|
+
## that prevent sudo from running.
|
|
6
|
+
##
|
|
7
|
+
## See the sudoers man page for the details on how to write a sudoers file.
|
|
8
|
+
##
|
|
9
|
+
|
|
10
|
+
##
|
|
11
|
+
## Host alias specification
|
|
12
|
+
##
|
|
13
|
+
## Groups of machines. These may include host names (optionally with wildcards),
|
|
14
|
+
## IP addresses, network numbers or netgroups.
|
|
15
|
+
# Host_Alias WEBSERVERS = www1, www2, www3
|
|
16
|
+
|
|
17
|
+
##
|
|
18
|
+
## User alias specification
|
|
19
|
+
##
|
|
20
|
+
## Groups of users. These may consist of user names, uids, Unix groups,
|
|
21
|
+
## or netgroups.
|
|
22
|
+
# User_Alias ADMINS = millert, dowdy, mikef
|
|
23
|
+
|
|
24
|
+
##
|
|
25
|
+
## Cmnd alias specification
|
|
26
|
+
##
|
|
27
|
+
## Groups of commands. Often used to group related commands together.
|
|
28
|
+
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
|
|
29
|
+
# /usr/bin/pkill, /usr/bin/top
|
|
30
|
+
|
|
31
|
+
##
|
|
32
|
+
## Defaults specification
|
|
33
|
+
##
|
|
34
|
+
## You may wish to keep some of the following environment variables
|
|
35
|
+
## when running commands via sudo.
|
|
36
|
+
##
|
|
37
|
+
## Locale settings
|
|
38
|
+
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
|
|
39
|
+
##
|
|
40
|
+
## Run X applications through sudo; HOME is used to find the
|
|
41
|
+
## .Xauthority file. Note that other programs use HOME to find
|
|
42
|
+
## configuration files and this may lead to privilege escalation!
|
|
43
|
+
# Defaults env_keep += "HOME"
|
|
44
|
+
##
|
|
45
|
+
## X11 resource path settings
|
|
46
|
+
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
|
|
47
|
+
##
|
|
48
|
+
## Desktop path settings
|
|
49
|
+
# Defaults env_keep += "QTDIR KDEDIR"
|
|
50
|
+
##
|
|
51
|
+
## Allow sudo-run commands to inherit the callers' ConsoleKit session
|
|
52
|
+
# Defaults env_keep += "XDG_SESSION_COOKIE"
|
|
53
|
+
##
|
|
54
|
+
## Uncomment to enable special input methods. Care should be taken as
|
|
55
|
+
## this may allow users to subvert the command being run via sudo.
|
|
56
|
+
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
|
|
57
|
+
##
|
|
58
|
+
## Uncomment to enable logging of a command's output, except for
|
|
59
|
+
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
|
|
60
|
+
# Defaults log_output
|
|
61
|
+
# Defaults!/usr/bin/sudoreplay !log_output
|
|
62
|
+
# Defaults!/usr/local/bin/sudoreplay !log_output
|
|
63
|
+
# Defaults!/sbin/reboot !log_output
|
|
64
|
+
|
|
65
|
+
##
|
|
66
|
+
## Runas alias specification
|
|
67
|
+
##
|
|
68
|
+
|
|
69
|
+
##
|
|
70
|
+
## User privilege specification
|
|
71
|
+
##
|
|
72
|
+
root ALL=(ALL) ALL
|
|
73
|
+
|
|
74
|
+
## Uncomment to allow members of group wheel to execute any command
|
|
75
|
+
#%wheel ALL=(ALL) ALL
|
|
76
|
+
|
|
77
|
+
## Same thing without a password
|
|
78
|
+
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
79
|
+
|
|
80
|
+
## Uncomment to allow members of group sudo to execute any command
|
|
81
|
+
# %sudo ALL=(ALL) ALL
|
|
82
|
+
|
|
83
|
+
## Uncomment to allow any user to run sudo if they know the password
|
|
84
|
+
## of the user they are running the command as (root by default).
|
|
85
|
+
# Defaults targetpw # Ask for the password of the target user
|
|
86
|
+
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
|
|
87
|
+
|
|
88
|
+
## Read drop-in files from /etc/sudoers.d
|
|
89
|
+
## (the '#' here does not indicate a comment)
|
|
90
|
+
#includedir /etc/sudoers.d
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
## sudoers file.
|
|
2
|
+
##
|
|
3
|
+
## This file MUST be edited with the 'visudo' command as root.
|
|
4
|
+
## Failure to use 'visudo' may result in syntax or file permission errors
|
|
5
|
+
## that prevent sudo from running.
|
|
6
|
+
##
|
|
7
|
+
## See the sudoers man page for the details on how to write a sudoers file.
|
|
8
|
+
##
|
|
9
|
+
|
|
10
|
+
##
|
|
11
|
+
## Host alias specification
|
|
12
|
+
##
|
|
13
|
+
## Groups of machines. These may include host names (optionally with wildcards),
|
|
14
|
+
## IP addresses, network numbers or netgroups.
|
|
15
|
+
# Host_Alias WEBSERVERS = www1, www2, www3
|
|
16
|
+
|
|
17
|
+
##
|
|
18
|
+
## User alias specification
|
|
19
|
+
##
|
|
20
|
+
## Groups of users. These may consist of user names, uids, Unix groups,
|
|
21
|
+
## or netgroups.
|
|
22
|
+
# User_Alias ADMINS = millert, dowdy, mikef
|
|
23
|
+
|
|
24
|
+
##
|
|
25
|
+
## Cmnd alias specification
|
|
26
|
+
##
|
|
27
|
+
## Groups of commands. Often used to group related commands together.
|
|
28
|
+
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
|
|
29
|
+
# /usr/bin/pkill, /usr/bin/top
|
|
30
|
+
|
|
31
|
+
##
|
|
32
|
+
## Defaults specification
|
|
33
|
+
##
|
|
34
|
+
## You may wish to keep some of the following environment variables
|
|
35
|
+
## when running commands via sudo.
|
|
36
|
+
##
|
|
37
|
+
## Locale settings
|
|
38
|
+
Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
|
|
39
|
+
##
|
|
40
|
+
## Run X applications through sudo; HOME is used to find the
|
|
41
|
+
## .Xauthority file. Note that other programs use HOME to find
|
|
42
|
+
## configuration files and this may lead to privilege escalation!
|
|
43
|
+
# Defaults env_keep += "HOME"
|
|
44
|
+
##
|
|
45
|
+
## X11 resource path settings
|
|
46
|
+
Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
|
|
47
|
+
##
|
|
48
|
+
## Desktop path settings
|
|
49
|
+
# Defaults env_keep += "QTDIR KDEDIR"
|
|
50
|
+
##
|
|
51
|
+
## Allow sudo-run commands to inherit the callers' ConsoleKit session
|
|
52
|
+
# Defaults env_keep += "XDG_SESSION_COOKIE"
|
|
53
|
+
##
|
|
54
|
+
## Uncomment to enable special input methods. Care should be taken as
|
|
55
|
+
## this may allow users to subvert the command being run via sudo.
|
|
56
|
+
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
|
|
57
|
+
##
|
|
58
|
+
## Uncomment to enable logging of a command's output, except for
|
|
59
|
+
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
|
|
60
|
+
# Defaults log_output
|
|
61
|
+
# Defaults!/usr/bin/sudoreplay !log_output
|
|
62
|
+
# Defaults!/usr/local/bin/sudoreplay !log_output
|
|
63
|
+
# Defaults!/sbin/reboot !log_output
|
|
64
|
+
|
|
65
|
+
##
|
|
66
|
+
## Runas alias specification
|
|
67
|
+
##
|
|
68
|
+
|
|
69
|
+
##
|
|
70
|
+
## User privilege specification
|
|
71
|
+
##
|
|
72
|
+
root ALL=(ALL) ALL
|
|
73
|
+
|
|
74
|
+
## Uncomment to allow members of group wheel to execute any command
|
|
75
|
+
# %wheel ALL=(ALL) ALL
|
|
76
|
+
|
|
77
|
+
## Same thing without a password
|
|
78
|
+
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
79
|
+
|
|
80
|
+
## Uncomment to allow members of group sudo to execute any command
|
|
81
|
+
# %sudo ALL=(ALL) ALL
|
|
82
|
+
|
|
83
|
+
## Uncomment to allow any user to run sudo if they know the password
|
|
84
|
+
## of the user they are running the command as (root by default).
|
|
85
|
+
# Defaults targetpw # Ask for the password of the target user
|
|
86
|
+
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
|
|
87
|
+
|
|
88
|
+
## Read drop-in files from /etc/sudoers.d
|
|
89
|
+
## (the '#' here does not indicate a comment)
|
|
90
|
+
#includedir /etc/sudoers.d
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
## sudoers file.
|
|
2
|
+
##
|
|
3
|
+
## This file MUST be edited with the 'visudo' command as root.
|
|
4
|
+
## Failure to use 'visudo' may result in syntax or file permission errors
|
|
5
|
+
## that prevent sudo from running.
|
|
6
|
+
##
|
|
7
|
+
## See the sudoers man page for the details on how to write a sudoers file.
|
|
8
|
+
##
|
|
9
|
+
|
|
10
|
+
##
|
|
11
|
+
## Host alias specification
|
|
12
|
+
##
|
|
13
|
+
## Groups of machines. These may include host names (optionally with wildcards),
|
|
14
|
+
## IP addresses, network numbers or netgroups.
|
|
15
|
+
# Host_Alias WEBSERVERS = www1, www2, www3
|
|
16
|
+
|
|
17
|
+
##
|
|
18
|
+
## User alias specification
|
|
19
|
+
##
|
|
20
|
+
## Groups of users. These may consist of user names, uids, Unix groups,
|
|
21
|
+
## or netgroups.
|
|
22
|
+
# User_Alias ADMINS = millert, dowdy, mikef
|
|
23
|
+
|
|
24
|
+
##
|
|
25
|
+
## Cmnd alias specification
|
|
26
|
+
##
|
|
27
|
+
## Groups of commands. Often used to group related commands together.
|
|
28
|
+
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
|
|
29
|
+
# /usr/bin/pkill, /usr/bin/top
|
|
30
|
+
|
|
31
|
+
##
|
|
32
|
+
## Defaults specification
|
|
33
|
+
##
|
|
34
|
+
## Uncomment if needed to preserve environmental variables related to the
|
|
35
|
+
## FreeBSD pkg_* utilities and fetch.
|
|
36
|
+
# Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE"
|
|
37
|
+
##
|
|
38
|
+
## Additionally uncomment if needed to preserve environmental variables
|
|
39
|
+
## related to portupgrade
|
|
40
|
+
# Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF"
|
|
41
|
+
##
|
|
42
|
+
## You may wish to keep some of the following environment variables
|
|
43
|
+
## when running commands via sudo.
|
|
44
|
+
##
|
|
45
|
+
## Locale settings
|
|
46
|
+
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
|
|
47
|
+
##
|
|
48
|
+
## Run X applications through sudo; HOME is used to find the
|
|
49
|
+
## .Xauthority file. Note that other programs use HOME to find
|
|
50
|
+
## configuration files and this may lead to privilege escalation!
|
|
51
|
+
# Defaults env_keep += "HOME"
|
|
52
|
+
##
|
|
53
|
+
## X11 resource path settings
|
|
54
|
+
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
|
|
55
|
+
##
|
|
56
|
+
## Desktop path settings
|
|
57
|
+
# Defaults env_keep += "QTDIR KDEDIR"
|
|
58
|
+
##
|
|
59
|
+
## Allow sudo-run commands to inherit the callers' ConsoleKit session
|
|
60
|
+
# Defaults env_keep += "XDG_SESSION_COOKIE"
|
|
61
|
+
##
|
|
62
|
+
## Uncomment to enable special input methods. Care should be taken as
|
|
63
|
+
## this may allow users to subvert the command being run via sudo.
|
|
64
|
+
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
|
|
65
|
+
##
|
|
66
|
+
## Uncomment to enable logging of a command's output, except for
|
|
67
|
+
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
|
|
68
|
+
# Defaults log_output
|
|
69
|
+
# Defaults!/usr/bin/sudoreplay !log_output
|
|
70
|
+
# Defaults!/usr/local/bin/sudoreplay !log_output
|
|
71
|
+
# Defaults!/sbin/reboot !log_output
|
|
72
|
+
|
|
73
|
+
##
|
|
74
|
+
## Runas alias specification
|
|
75
|
+
##
|
|
76
|
+
|
|
77
|
+
##
|
|
78
|
+
## User privilege specification
|
|
79
|
+
##
|
|
80
|
+
root ALL=(ALL) ALL
|
|
81
|
+
|
|
82
|
+
## Uncomment to allow members of group wheel to execute any command
|
|
83
|
+
# %wheel ALL=(ALL) ALL
|
|
84
|
+
|
|
85
|
+
## Same thing without a password
|
|
86
|
+
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
87
|
+
|
|
88
|
+
## Uncomment to allow members of group sudo to execute any command
|
|
89
|
+
# %sudo ALL=(ALL) ALL
|
|
90
|
+
|
|
91
|
+
## Uncomment to allow any user to run sudo if they know the password
|
|
92
|
+
## of the user they are running the command as (root by default).
|
|
93
|
+
# Defaults targetpw # Ask for the password of the target user
|
|
94
|
+
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
|
|
95
|
+
|
|
96
|
+
## Read drop-in files from /usr/local/etc/sudoers.d
|
|
97
|
+
## (the '#' here does not indicate a comment)
|
|
98
|
+
#includedir /usr/local/etc/sudoers.d
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
## sudoers file.
|
|
2
|
+
##
|
|
3
|
+
## This file MUST be edited with the 'visudo' command as root.
|
|
4
|
+
## Failure to use 'visudo' may result in syntax or file permission errors
|
|
5
|
+
## that prevent sudo from running.
|
|
6
|
+
##
|
|
7
|
+
## See the sudoers man page for the details on how to write a sudoers file.
|
|
8
|
+
##
|
|
9
|
+
|
|
10
|
+
##
|
|
11
|
+
## Host alias specification
|
|
12
|
+
##
|
|
13
|
+
## Groups of machines. These may include host names (optionally with wildcards),
|
|
14
|
+
## IP addresses, network numbers or netgroups.
|
|
15
|
+
# Host_Alias WEBSERVERS = www1, www2, www3
|
|
16
|
+
|
|
17
|
+
##
|
|
18
|
+
## User alias specification
|
|
19
|
+
##
|
|
20
|
+
## Groups of users. These may consist of user names, uids, Unix groups,
|
|
21
|
+
## or netgroups.
|
|
22
|
+
# User_Alias ADMINS = millert, dowdy, mikef
|
|
23
|
+
|
|
24
|
+
##
|
|
25
|
+
## Cmnd alias specification
|
|
26
|
+
##
|
|
27
|
+
## Groups of commands. Often used to group related commands together.
|
|
28
|
+
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
|
|
29
|
+
# /usr/bin/pkill, /usr/bin/top
|
|
30
|
+
|
|
31
|
+
##
|
|
32
|
+
## Defaults specification
|
|
33
|
+
##
|
|
34
|
+
## You may wish to keep some of the following environment variables
|
|
35
|
+
## when running commands via sudo.
|
|
36
|
+
##
|
|
37
|
+
## Locale settings
|
|
38
|
+
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
|
|
39
|
+
##
|
|
40
|
+
## Run X applications through sudo; HOME is used to find the
|
|
41
|
+
## .Xauthority file. Note that other programs use HOME to find
|
|
42
|
+
## configuration files and this may lead to privilege escalation!
|
|
43
|
+
# Defaults env_keep += "HOME"
|
|
44
|
+
##
|
|
45
|
+
## X11 resource path settings
|
|
46
|
+
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
|
|
47
|
+
##
|
|
48
|
+
## Desktop path settings
|
|
49
|
+
# Defaults env_keep += "QTDIR KDEDIR"
|
|
50
|
+
##
|
|
51
|
+
## Allow sudo-run commands to inherit the callers' ConsoleKit session
|
|
52
|
+
# Defaults env_keep += "XDG_SESSION_COOKIE"
|
|
53
|
+
##
|
|
54
|
+
## Uncomment to enable special input methods. Care should be taken as
|
|
55
|
+
## this may allow users to subvert the command being run via sudo.
|
|
56
|
+
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
|
|
57
|
+
##
|
|
58
|
+
## Uncomment to enable logging of a command's output, except for
|
|
59
|
+
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
|
|
60
|
+
# Defaults log_output
|
|
61
|
+
# Defaults!/usr/bin/sudoreplay !log_output
|
|
62
|
+
# Defaults!/usr/local/bin/sudoreplay !log_output
|
|
63
|
+
# Defaults!/sbin/reboot !log_output
|
|
64
|
+
|
|
65
|
+
##
|
|
66
|
+
## Runas alias specification
|
|
67
|
+
##
|
|
68
|
+
|
|
69
|
+
##
|
|
70
|
+
## User privilege specification
|
|
71
|
+
##
|
|
72
|
+
root ALL=(ALL) ALL
|
|
73
|
+
|
|
74
|
+
## Uncomment to allow members of group wheel to execute any command
|
|
75
|
+
# %wheel ALL=(ALL) ALL
|
|
76
|
+
|
|
77
|
+
## Same thing without a password
|
|
78
|
+
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
79
|
+
|
|
80
|
+
## Uncomment to allow members of group sudo to execute any command
|
|
81
|
+
# %sudo ALL=(ALL) ALL
|
|
82
|
+
|
|
83
|
+
## Uncomment to allow any user to run sudo if they know the password
|
|
84
|
+
## of the user they are running the command as (root by default).
|
|
85
|
+
# Defaults targetpw # Ask for the password of the target user
|
|
86
|
+
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
|
|
87
|
+
|
|
88
|
+
## Read drop-in files from /etc/sudoers.d
|
|
89
|
+
## (the '#' here does not indicate a comment)
|
|
90
|
+
#includedir /etc/sudoers.d
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
## Sudoers allows particular users to run various commands as
|
|
2
|
+
## the root user, without needing the root password.
|
|
3
|
+
##
|
|
4
|
+
## Examples are provided at the bottom of the file for collections
|
|
5
|
+
## of related commands, which can then be delegated out to particular
|
|
6
|
+
## users or groups.
|
|
7
|
+
##
|
|
8
|
+
## This file must be edited with the 'visudo' command.
|
|
9
|
+
|
|
10
|
+
## Host Aliases
|
|
11
|
+
## Groups of machines. You may prefer to use hostnames (perhap using
|
|
12
|
+
## wildcards for entire domains) or IP addresses instead.
|
|
13
|
+
# Host_Alias FILESERVERS = fs1, fs2
|
|
14
|
+
# Host_Alias MAILSERVERS = smtp, smtp2
|
|
15
|
+
|
|
16
|
+
## User Aliases
|
|
17
|
+
## These aren't often necessary, as you can use regular groups
|
|
18
|
+
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
|
|
19
|
+
## rather than USERALIAS
|
|
20
|
+
# User_Alias ADMINS = jsmith, mikem
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Command Aliases
|
|
24
|
+
## These are groups of related commands...
|
|
25
|
+
|
|
26
|
+
## Networking
|
|
27
|
+
Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool
|
|
28
|
+
|
|
29
|
+
## Installation and management of software
|
|
30
|
+
Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
|
|
31
|
+
|
|
32
|
+
## Services
|
|
33
|
+
Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig
|
|
34
|
+
|
|
35
|
+
## Updating the locate database
|
|
36
|
+
Cmnd_Alias LOCATE = /usr/sbin/updatedb
|
|
37
|
+
|
|
38
|
+
## Storage
|
|
39
|
+
Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount
|
|
40
|
+
|
|
41
|
+
## Delegating permissions
|
|
42
|
+
Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp
|
|
43
|
+
|
|
44
|
+
## Processes
|
|
45
|
+
Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall
|
|
46
|
+
|
|
47
|
+
## Drivers
|
|
48
|
+
Cmnd_Alias DRIVERS = /sbin/modprobe
|
|
49
|
+
|
|
50
|
+
# Defaults specification
|
|
51
|
+
|
|
52
|
+
#
|
|
53
|
+
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
|
|
54
|
+
# You have to run "ssh -t hostname sudo <cmd>".
|
|
55
|
+
#
|
|
56
|
+
Defaults requiretty
|
|
57
|
+
|
|
58
|
+
Defaults env_reset
|
|
59
|
+
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
|
|
60
|
+
LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
|
|
61
|
+
LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
|
|
62
|
+
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
|
|
63
|
+
LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
|
|
64
|
+
_XKB_CHARSET XAUTHORITY"
|
|
65
|
+
|
|
66
|
+
## Next comes the main part: which users can run what software on
|
|
67
|
+
## which machines (the sudoers file can be shared between multiple
|
|
68
|
+
## systems).
|
|
69
|
+
## Syntax:
|
|
70
|
+
##
|
|
71
|
+
## user MACHINE=COMMANDS
|
|
72
|
+
##
|
|
73
|
+
##
|
|
74
|
+
## The COMMANDS section may have other options added to it.
|
|
75
|
+
##
|
|
76
|
+
## Allow root to run any commands anywhere
|
|
77
|
+
root ALL=(ALL) ALL
|
|
78
|
+
|
|
79
|
+
## Allows members of the 'sys' group to run networking, software,
|
|
80
|
+
## service management apps and more.
|
|
81
|
+
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
|
|
82
|
+
|
|
83
|
+
## Allows people in group wheel to run all commands
|
|
84
|
+
# %wheel ALL=(ALL) ALL
|
|
85
|
+
|
|
86
|
+
## Same thing without a password
|
|
87
|
+
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
88
|
+
|
|
89
|
+
## Allows members of the users group to mount and unmount the
|
|
90
|
+
## cdrom as root
|
|
91
|
+
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
|
|
92
|
+
|
|
93
|
+
## Allows members of the users group to shutdown this system
|
|
94
|
+
# %users localhost=/sbin/shutdown -h now
|
|
95
|
+
|
|
96
|
+
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
|
|
97
|
+
#includedir /etc/sudoers.d
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
## Sudoers allows particular users to run various commands as
|
|
2
|
+
## the root user, without needing the root password.
|
|
3
|
+
##
|
|
4
|
+
## Examples are provided at the bottom of the file for collections
|
|
5
|
+
## of related commands, which can then be delegated out to particular
|
|
6
|
+
## users or groups.
|
|
7
|
+
##
|
|
8
|
+
## This file must be edited with the 'visudo' command.
|
|
9
|
+
|
|
10
|
+
## Host Aliases
|
|
11
|
+
## Groups of machines. You may prefer to use hostnames (perhaps using
|
|
12
|
+
## wildcards for entire domains) or IP addresses instead.
|
|
13
|
+
# Host_Alias FILESERVERS = fs1, fs2
|
|
14
|
+
# Host_Alias MAILSERVERS = smtp, smtp2
|
|
15
|
+
|
|
16
|
+
## User Aliases
|
|
17
|
+
## These aren't often necessary, as you can use regular groups
|
|
18
|
+
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
|
|
19
|
+
## rather than USERALIAS
|
|
20
|
+
# User_Alias ADMINS = jsmith, mikem
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Command Aliases
|
|
24
|
+
## These are groups of related commands...
|
|
25
|
+
|
|
26
|
+
## Networking
|
|
27
|
+
# Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool
|
|
28
|
+
|
|
29
|
+
## Installation and management of software
|
|
30
|
+
# Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
|
|
31
|
+
|
|
32
|
+
## Services
|
|
33
|
+
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig
|
|
34
|
+
|
|
35
|
+
## Updating the locate database
|
|
36
|
+
# Cmnd_Alias LOCATE = /usr/bin/updatedb
|
|
37
|
+
|
|
38
|
+
## Storage
|
|
39
|
+
# Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount
|
|
40
|
+
|
|
41
|
+
## Delegating permissions
|
|
42
|
+
# Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp
|
|
43
|
+
|
|
44
|
+
## Processes
|
|
45
|
+
# Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall
|
|
46
|
+
|
|
47
|
+
## Drivers
|
|
48
|
+
# Cmnd_Alias DRIVERS = /sbin/modprobe
|
|
49
|
+
|
|
50
|
+
# Defaults specification
|
|
51
|
+
|
|
52
|
+
#
|
|
53
|
+
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
|
|
54
|
+
# You have to run "ssh -t hostname sudo <cmd>".
|
|
55
|
+
#
|
|
56
|
+
Defaults requiretty
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# Refuse to run if unable to disable echo on the tty. This setting should also be
|
|
60
|
+
# changed in order to be able to use sudo without a tty. See requiretty above.
|
|
61
|
+
#
|
|
62
|
+
Defaults !visiblepw
|
|
63
|
+
|
|
64
|
+
#
|
|
65
|
+
# Preserving HOME has security implications since many programs
|
|
66
|
+
# use it when searching for configuration files.
|
|
67
|
+
#
|
|
68
|
+
Defaults always_set_home
|
|
69
|
+
|
|
70
|
+
Defaults env_reset
|
|
71
|
+
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
|
|
72
|
+
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
|
|
73
|
+
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
|
|
74
|
+
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
|
|
75
|
+
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
|
|
76
|
+
|
|
77
|
+
#
|
|
78
|
+
# Adding HOME to env_keep may enable a user to run unrestricted
|
|
79
|
+
# commands via sudo.
|
|
80
|
+
#
|
|
81
|
+
# Defaults env_keep += "HOME"
|
|
82
|
+
|
|
83
|
+
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
|
|
84
|
+
|
|
85
|
+
## Next comes the main part: which users can run what software on
|
|
86
|
+
## which machines (the sudoers file can be shared between multiple
|
|
87
|
+
## systems).
|
|
88
|
+
## Syntax:
|
|
89
|
+
##
|
|
90
|
+
## user MACHINE=COMMANDS
|
|
91
|
+
##
|
|
92
|
+
## The COMMANDS section may have other options added to it.
|
|
93
|
+
##
|
|
94
|
+
## Allow root to run any commands anywhere
|
|
95
|
+
root ALL=(ALL) ALL
|
|
96
|
+
|
|
97
|
+
## Allows members of the 'sys' group to run networking, software,
|
|
98
|
+
## service management apps and more.
|
|
99
|
+
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
|
|
100
|
+
|
|
101
|
+
## Allows people in group wheel to run all commands
|
|
102
|
+
# %wheel ALL=(ALL) ALL
|
|
103
|
+
|
|
104
|
+
## Same thing without a password
|
|
105
|
+
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
106
|
+
|
|
107
|
+
## Allows members of the users group to mount and unmount the
|
|
108
|
+
## cdrom as root
|
|
109
|
+
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
|
|
110
|
+
|
|
111
|
+
## Allows members of the users group to shutdown this system
|
|
112
|
+
# %users localhost=/sbin/shutdown -h now
|
|
113
|
+
|
|
114
|
+
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
|
|
115
|
+
#includedir /etc/sudoers.d
|