├── etc └── .gitkeep ├── .modman └── .basedir ├── puphpet ├── files │ ├── exec-always │ │ ├── empty │ │ ├── 00-symlinks.sh │ │ └── 01-chmod.sh │ ├── exec-once │ │ ├── empty │ │ ├── 01-chmod.sh │ │ ├── 00-user.sh │ │ ├── 10-modman.sh │ │ └── 11-n98magerun.sh │ ├── startup-once │ │ └── empty │ ├── startup-always │ │ ├── empty │ │ ├── 01-chmod.sh │ │ └── 10-envconfig.sh │ └── dot │ │ ├── .ssh │ │ └── .gitignore │ │ ├── .gitconfig │ │ └── .bash_login ├── puppet │ ├── modules │ │ ├── concat │ │ │ ├── .sync.yml │ │ │ ├── .gitattributes │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ ├── spec.opts │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-59-x64.yml │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ ├── debian-607-x64.yml │ │ │ │ │ ├── fedora-18-x64.yml │ │ │ │ │ ├── sles-11-x64.yml │ │ │ │ │ ├── sles-11sp1-x64.yml │ │ │ │ │ ├── debian-70rc1-x64.yml │ │ │ │ │ ├── debian-73-x64.yml │ │ │ │ │ ├── ubuntu-server-1404-x64.yml │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ └── fragment.pp │ │ │ ├── .fixtures.yml │ │ │ └── lib │ │ │ │ └── facter │ │ │ │ └── concat_basedir.rb │ │ ├── apache │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ ├── dev.pp │ │ │ │ ├── php.pp │ │ │ │ ├── apache.pp │ │ │ │ ├── mods.pp │ │ │ │ ├── mod_load_params.pp │ │ │ │ └── mods_custom.pp │ │ │ ├── templates │ │ │ │ ├── vhost │ │ │ │ │ ├── _file_footer.erb │ │ │ │ │ ├── _serversignature.erb │ │ │ │ │ ├── _action.erb │ │ │ │ │ ├── _suexec.erb │ │ │ │ │ ├── _charsets.erb │ │ │ │ │ ├── _fallbackresource.erb │ │ │ │ │ ├── _custom_fragment.erb │ │ │ │ │ ├── _allow_encoded_slashes.erb │ │ │ │ │ ├── _rack.erb │ │ │ │ │ ├── _docroot.erb │ │ │ │ │ ├── _serveralias.erb │ │ │ │ │ ├── _logging.erb │ │ │ │ │ ├── _file_header.erb │ │ │ │ │ ├── _additional_includes.erb │ │ │ │ │ ├── _header.erb │ │ │ │ │ ├── _suphp.erb │ │ │ │ │ ├── _error_document.erb │ │ │ │ │ ├── _setenv.erb │ │ │ │ │ └── _requestheader.erb │ │ │ │ ├── mod │ │ │ │ │ ├── dav_fs.conf.erb │ │ │ │ │ ├── cgid.conf.erb │ │ │ │ │ ├── dir.conf.erb │ │ │ │ │ ├── mime_magic.conf.erb │ │ │ │ │ ├── reqtimeout.conf.erb │ │ │ │ │ ├── authnz_ldap.conf.erb │ │ │ │ │ ├── negotiation.conf.erb │ │ │ │ │ ├── fcgid.conf.erb │ │ │ │ │ ├── load.erb │ │ │ │ │ ├── deflate.conf.erb │ │ │ │ │ ├── disk_cache.conf.erb │ │ │ │ │ ├── fastcgi.conf.erb │ │ │ │ │ ├── mpm_event.conf.erb │ │ │ │ │ ├── itk.conf.erb │ │ │ │ │ ├── ldap.conf.erb │ │ │ │ │ ├── prefork.conf.erb │ │ │ │ │ └── alias.conf.erb │ │ │ │ ├── confd │ │ │ │ │ └── no-accf.conf.erb │ │ │ │ ├── listen.erb │ │ │ │ ├── namevirtualhost.erb │ │ │ │ ├── ports_header.erb │ │ │ │ └── fastcgi │ │ │ │ │ └── server.erb │ │ │ ├── spec │ │ │ │ ├── fixtures │ │ │ │ │ ├── files │ │ │ │ │ │ ├── spec │ │ │ │ │ │ └── negotiation.conf │ │ │ │ │ ├── modules │ │ │ │ │ │ └── site_apache │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ └── fake.conf.erb │ │ │ │ │ └── templates │ │ │ │ │ │ └── negotiation.conf.erb │ │ │ │ ├── spec.opts │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── centos-59-x64.yml │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ ├── centos-70-x64.yml │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── debian-607-x64.yml │ │ │ │ │ ├── debian-73-x64.yml │ │ │ │ │ ├── fedora-18-x64.yml │ │ │ │ │ ├── debian-73-i386.yml │ │ │ │ │ ├── debian-70rc1-x64.yml │ │ │ │ │ ├── ubuntu-server-1404-x64.yml │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ ├── ubuntu-server-12042-x64.yml │ │ │ │ │ └── ubuntu-server-1310-x64.yml │ │ │ ├── manifests │ │ │ │ ├── mod │ │ │ │ │ ├── dav.pp │ │ │ │ │ ├── cache.pp │ │ │ │ │ ├── perl.pp │ │ │ │ │ ├── actions.pp │ │ │ │ │ ├── expires.pp │ │ │ │ │ ├── filter.pp │ │ │ │ │ ├── headers.pp │ │ │ │ │ ├── include.pp │ │ │ │ │ ├── speling.pp │ │ │ │ │ ├── suexec.pp │ │ │ │ │ ├── auth_basic.pp │ │ │ │ │ ├── authn_file.pp │ │ │ │ │ ├── authz_user.pp │ │ │ │ │ ├── python.pp │ │ │ │ │ ├── vhost_alias.pp │ │ │ │ │ ├── auth_kerb.pp │ │ │ │ │ ├── authz_default.pp │ │ │ │ │ ├── rewrite.pp │ │ │ │ │ ├── xsendfile.pp │ │ │ │ │ ├── proxy_ajp.pp │ │ │ │ │ ├── proxy_http.pp │ │ │ │ │ ├── dev.pp │ │ │ │ │ ├── cgi.pp │ │ │ │ │ ├── proxy_connect.pp │ │ │ │ │ ├── version.pp │ │ │ │ │ ├── proxy_balancer.pp │ │ │ │ │ └── shib.pp │ │ │ │ ├── default_mods │ │ │ │ │ └── load.pp │ │ │ │ ├── listen.pp │ │ │ │ ├── namevirtualhost.pp │ │ │ │ ├── proxy.pp │ │ │ │ ├── default_confd_files.pp │ │ │ │ ├── confd │ │ │ │ │ └── no_accf.pp │ │ │ │ ├── php.pp │ │ │ │ ├── python.pp │ │ │ │ └── dev.pp │ │ │ ├── .geppetto-rc.json │ │ │ ├── .puppet-lint.rc │ │ │ ├── .fixtures.yml │ │ │ └── .sync.yml │ │ ├── apt │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ ├── params.pp │ │ │ │ ├── unattended_upgrades.pp │ │ │ │ ├── builddep.pp │ │ │ │ ├── debian │ │ │ │ │ ├── testing.pp │ │ │ │ │ └── unstable.pp │ │ │ │ ├── release.pp │ │ │ │ ├── ppa.pp │ │ │ │ ├── pin.pp │ │ │ │ ├── key.pp │ │ │ │ └── force.pp │ │ │ ├── .puppet-lint.rc │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ └── acceptance │ │ │ │ │ ├── nodesets │ │ │ │ │ ├── debian-70rc1-x64.yml │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── ubuntu-server-12042-x64.yml │ │ │ │ │ └── ubuntu-server-10044-x64.yml │ │ │ │ │ └── unsupported_spec.rb │ │ │ ├── Rakefile │ │ │ ├── .fixtures.yml │ │ │ ├── manifests │ │ │ │ ├── update.pp │ │ │ │ ├── release.pp │ │ │ │ └── conf.pp │ │ │ └── templates │ │ │ │ └── source.list.erb │ │ ├── erlang │ │ │ ├── .rspec │ │ │ ├── spec │ │ │ │ └── spec_helper.rb │ │ │ ├── .fixtures.yml │ │ │ └── Gemfile │ │ ├── git │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ └── gitosis.pp │ │ │ ├── Rakefile │ │ │ ├── spec │ │ │ │ └── spec_helper.rb │ │ │ ├── CHANGELOG │ │ │ ├── lib │ │ │ │ └── facter │ │ │ │ │ ├── git_exec_path.rb │ │ │ │ │ └── git_version.rb │ │ │ ├── .fixtures.yml │ │ │ ├── manifests │ │ │ │ ├── gitosis.pp │ │ │ │ └── init.pp │ │ │ └── Modulefile │ │ ├── monitor │ │ │ ├── spec │ │ │ │ └── fixtures │ │ │ │ │ └── manifests │ │ │ │ │ └── site.pp │ │ │ └── Rakefile │ │ ├── sqlite │ │ │ ├── tests │ │ │ │ └── init.pp │ │ │ ├── spec │ │ │ │ └── spec.opts │ │ │ └── manifests │ │ │ │ └── init.pp │ │ ├── stdlib │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ ├── has_ip_network.pp │ │ │ │ ├── has_ip_address.pp │ │ │ │ └── file_line.pp │ │ │ ├── .rspec │ │ │ ├── .fixtures.yml │ │ │ ├── spec │ │ │ │ ├── spec.opts │ │ │ │ ├── fixtures │ │ │ │ │ └── dscacheutil │ │ │ │ │ │ └── root │ │ │ │ ├── monkey_patches │ │ │ │ │ └── alias_should_to_must.rb │ │ │ │ ├── unit │ │ │ │ │ └── puppet │ │ │ │ │ │ └── type │ │ │ │ │ │ └── anchor_spec.rb │ │ │ │ ├── lib │ │ │ │ │ └── puppet_spec │ │ │ │ │ │ └── verbose.rb │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-59-x64.yml │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ ├── fedora-18-x64.yml │ │ │ │ │ ├── sles-11-x64.yml │ │ │ │ │ ├── ubuntu-server-1404-x64.yml │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ ├── .sync.yml │ │ │ └── README_SPECS.markdown │ │ ├── beanstalkd │ │ │ ├── spec │ │ │ │ ├── fixtures │ │ │ │ │ └── manifests │ │ │ │ │ │ └── site.pp │ │ │ │ └── spec_helper.rb │ │ │ ├── Rakefile │ │ │ └── Gemfile │ │ ├── staging │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ ├── scope_defaults.pp │ │ │ │ ├── deploy.pp │ │ │ │ └── file.pp │ │ │ ├── files │ │ │ │ ├── sample │ │ │ │ ├── sample.tar.bz2 │ │ │ │ └── sample.tar.gz │ │ │ ├── Rakefile │ │ │ ├── spec │ │ │ │ └── fixtures │ │ │ │ │ └── hiera.yaml │ │ │ ├── manifests │ │ │ │ └── .init.pp.swp │ │ │ ├── Gemfile │ │ │ └── lib │ │ │ │ └── facter │ │ │ │ └── staging_windir.rb │ │ ├── swap_file │ │ │ ├── CONTRIBUTORS │ │ │ ├── .rspec │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ ├── classes │ │ │ │ │ └── coverage_spec.rb │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── default.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ ├── Guardfile │ │ │ └── .fixtures.yml │ │ ├── sysctl │ │ │ ├── tests │ │ │ │ ├── base.pp │ │ │ │ └── init.pp │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ └── classes │ │ │ │ │ └── sysctl_base_spec.rb │ │ │ ├── templates │ │ │ │ └── sysctl.d-file.erb │ │ │ ├── Gemfile │ │ │ ├── Rakefile │ │ │ └── Modulefile │ │ ├── mongodb │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ ├── globals.pp │ │ │ │ ├── server.pp │ │ │ │ └── replicaset.pp │ │ │ ├── Rakefile │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── fedora-18-x64.yml │ │ │ │ │ ├── multi-centos-64-x64.yml │ │ │ │ │ ├── sles-11-x64.yml │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ ├── .fixtures.yml │ │ │ └── manifests │ │ │ │ └── replset.pp │ │ ├── mysql │ │ │ ├── examples │ │ │ │ ├── java.pp │ │ │ │ ├── perl.pp │ │ │ │ ├── ruby.pp │ │ │ │ ├── python.pp │ │ │ │ ├── server │ │ │ │ │ ├── config.pp │ │ │ │ │ └── account_security.pp │ │ │ │ ├── bindings.pp │ │ │ │ ├── server.pp │ │ │ │ ├── mysql_grant.pp │ │ │ │ └── backup.pp │ │ │ ├── .sync.yml │ │ │ ├── spec │ │ │ │ ├── spec.opts │ │ │ │ ├── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ │ ├── centos-59-x64.yml │ │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ │ ├── centos-510-x64.yml │ │ │ │ │ │ ├── fedora-18-x64.yml │ │ │ │ │ │ ├── sles-11-x64.yml │ │ │ │ │ │ ├── default.yml │ │ │ │ │ │ ├── ubuntu-server-1404-x64.yml │ │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ │ └── spec_helper.rb │ │ │ ├── .geppetto-rc.json │ │ │ ├── .fixtures.yml │ │ │ ├── templates │ │ │ │ └── my.cnf.pass.erb │ │ │ └── manifests │ │ │ │ ├── client │ │ │ │ └── install.pp │ │ │ │ ├── bindings │ │ │ │ ├── perl.pp │ │ │ │ ├── ruby.pp │ │ │ │ ├── java.pp │ │ │ │ ├── php.pp │ │ │ │ └── python.pp │ │ │ │ └── server │ │ │ │ └── providers.pp │ │ ├── yum │ │ │ ├── files │ │ │ │ └── empty │ │ │ │ │ └── .placeholder │ │ │ ├── spec │ │ │ │ └── spec_helper.rb │ │ │ ├── .gemfile │ │ │ ├── Rakefile │ │ │ ├── Modulefile │ │ │ └── .fixtures.yml │ │ ├── ntp │ │ │ ├── Rakefile │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ ├── spec.opts │ │ │ │ ├── fixtures │ │ │ │ │ └── modules │ │ │ │ │ │ └── my_ntp │ │ │ │ │ │ └── templates │ │ │ │ │ │ └── ntp.conf.erb │ │ │ │ ├── unit │ │ │ │ │ └── puppet │ │ │ │ │ │ ├── provider │ │ │ │ │ │ └── README.markdown │ │ │ │ │ │ └── type │ │ │ │ │ │ └── README.markdown │ │ │ │ └── acceptance │ │ │ │ │ ├── nodesets │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ ├── fedora-18-x64.yml │ │ │ │ │ ├── sles-11-x64.yml │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ │ │ └── unsupported_spec.rb │ │ │ ├── .fixtures.yml │ │ │ ├── manifests │ │ │ │ └── install.pp │ │ │ └── tests │ │ │ │ └── init.pp │ │ ├── rabbitmq │ │ │ ├── tests │ │ │ │ ├── service.pp │ │ │ │ ├── vhosts │ │ │ │ │ └── add.pp │ │ │ │ ├── repo │ │ │ │ │ └── apt.pp │ │ │ │ ├── user │ │ │ │ │ └── add.pp │ │ │ │ ├── server.pp │ │ │ │ ├── erlang_deps.pp │ │ │ │ ├── permissions │ │ │ │ │ └── add.pp │ │ │ │ └── plugin.pp │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ ├── spec.opts │ │ │ │ ├── README.markdown │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── default.yml │ │ │ │ │ └── ubuntu-server-1310-x64.yml │ │ │ ├── files │ │ │ │ └── plugins │ │ │ │ │ ├── amqp_client-2.3.1.ez │ │ │ │ │ └── rabbit_stomp-2.3.1.ez │ │ │ ├── templates │ │ │ │ └── rabbitmq-env.conf.erb │ │ │ ├── .fixtures.yml │ │ │ └── manifests │ │ │ │ └── repo │ │ │ │ └── rhel.pp │ │ ├── vcsrepo │ │ │ ├── Rakefile │ │ │ ├── spec │ │ │ │ ├── spec.opts │ │ │ │ ├── unit │ │ │ │ │ └── puppet │ │ │ │ │ │ └── type │ │ │ │ │ │ └── README.markdown │ │ │ │ ├── support │ │ │ │ │ └── fixture_helpers.rb │ │ │ │ ├── fixtures │ │ │ │ │ ├── bzr_version_info.txt │ │ │ │ │ ├── hg_parents.txt │ │ │ │ │ ├── git_branch_a.txt │ │ │ │ │ ├── git_branch_feature_bar.txt │ │ │ │ │ ├── git_branch_none.txt │ │ │ │ │ └── svn_info.txt │ │ │ │ └── spec_helper.rb │ │ │ ├── examples │ │ │ │ ├── git │ │ │ │ │ ├── bare_init.pp │ │ │ │ │ ├── working_copy_init.pp │ │ │ │ │ └── clone.pp │ │ │ │ ├── hg │ │ │ │ │ ├── init_repo.pp │ │ │ │ │ └── clone.pp │ │ │ │ ├── bzr │ │ │ │ │ ├── init_repo.pp │ │ │ │ │ └── branch.pp │ │ │ │ ├── svn │ │ │ │ │ ├── server.pp │ │ │ │ │ └── checkout.pp │ │ │ │ └── cvs │ │ │ │ │ ├── remote.pp │ │ │ │ │ └── local.pp │ │ │ └── Modulefile │ │ ├── nginx │ │ │ ├── templates │ │ │ │ ├── vhost │ │ │ │ │ └── locations │ │ │ │ │ │ ├── stub_status.erb │ │ │ │ │ │ └── alias.erb │ │ │ │ └── conf.d │ │ │ │ │ ├── upstream_member.erb │ │ │ │ │ ├── upstream_members.erb │ │ │ │ │ └── map.erb │ │ │ ├── .fixtures.yml │ │ │ ├── Puppetfile │ │ │ ├── spec │ │ │ │ └── spec_helper.rb │ │ │ ├── tests │ │ │ │ ├── upstream.pp │ │ │ │ ├── location_alias.pp │ │ │ │ └── init.pp │ │ │ ├── manifests │ │ │ │ └── package │ │ │ │ │ └── freebsd.pp │ │ │ ├── Puppetfile.lock │ │ │ ├── .travis │ │ │ │ ├── Rakefile │ │ │ │ └── Gemfile │ │ │ └── composer.json │ │ ├── puphpet │ │ │ ├── manifests │ │ │ │ ├── init.pp │ │ │ │ ├── firewall │ │ │ │ │ └── post.pp │ │ │ │ └── apache │ │ │ │ │ └── mod.pp │ │ │ ├── README.md │ │ │ ├── templates │ │ │ │ └── apache │ │ │ │ │ ├── mod │ │ │ │ │ └── spdy │ │ │ │ │ │ ├── php-wrapper.erb │ │ │ │ │ │ └── spdy_conf.erb │ │ │ │ │ ├── custom_fragment.erb │ │ │ │ │ └── hhvm-httpd.conf.erb │ │ │ └── files │ │ │ │ └── xdebug_cli_alias.erb │ │ ├── java │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ ├── spec.opts │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-59-x64.yml │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ ├── centos-64-x64-fusion.yml │ │ │ │ │ ├── debian-607-x64.yml │ │ │ │ │ ├── fedora-18-x64.yml │ │ │ │ │ ├── sles-11sp1-x64.yml │ │ │ │ │ ├── debian-70rc1-x64.yml │ │ │ │ │ ├── ubuntu-server-1404-x64.yml │ │ │ │ │ ├── centos-59-x64-pe.yml │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ └── alternative.pp │ │ │ └── .fixtures.yml │ │ ├── php │ │ │ ├── spec │ │ │ │ └── spec_helper.rb │ │ │ ├── lib │ │ │ │ └── facter │ │ │ │ │ ├── php_fact_version.rb │ │ │ │ │ └── php_fact_extension_dir.rb │ │ │ ├── .gemfile │ │ │ ├── Rakefile │ │ │ ├── templates │ │ │ │ ├── extra-ini.erb │ │ │ │ └── spec.erb │ │ │ ├── manifests │ │ │ │ └── devel.pp │ │ │ └── .fixtures.yml │ │ ├── composer │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ ├── spec.opts │ │ │ │ ├── fixtures │ │ │ │ │ └── manifests │ │ │ │ │ │ └── site.pp │ │ │ │ └── classes │ │ │ │ │ └── composer_params_spec.rb │ │ │ ├── Rakefile │ │ │ ├── lib │ │ │ │ └── facter │ │ │ │ │ └── composer_home.rb │ │ │ ├── .fixtures.yml │ │ │ └── .travis.yml │ │ ├── locales │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ └── spec.opts │ │ │ ├── templates │ │ │ │ └── default_locales.erb │ │ │ └── tests │ │ │ │ └── init.pp │ │ ├── mailcatcher │ │ │ ├── spec │ │ │ │ └── spec_helper.rb │ │ │ ├── .fixtures.yml │ │ │ ├── Rakefile │ │ │ └── Gemfile │ │ ├── puppi │ │ │ ├── spec │ │ │ │ └── spec_helper.rb │ │ │ ├── templates │ │ │ │ ├── log.erb │ │ │ │ └── info.erb │ │ │ ├── files │ │ │ │ ├── info │ │ │ │ │ └── readme │ │ │ │ │ │ ├── readme │ │ │ │ │ │ └── readme-default │ │ │ │ └── scripts │ │ │ │ │ └── execute.sh │ │ │ ├── lib │ │ │ │ └── facter │ │ │ │ │ ├── last_run.rb │ │ │ │ │ ├── windows_common_appdata.rb │ │ │ │ │ └── puppi_projects.rb │ │ │ ├── .fixtures.yml │ │ │ ├── .gemfile │ │ │ ├── manifests │ │ │ │ ├── two.pp │ │ │ │ └── helpers.pp │ │ │ ├── Rakefile │ │ │ └── composer.json │ │ ├── firewall │ │ │ ├── .fixtures.yml │ │ │ ├── spec │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── ubuntu-server-1404-x64.yml │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-59-x64.yml │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── fedora-18-x64.yml │ │ │ │ │ ├── centos-64-x64-fusion.yml │ │ │ │ │ ├── debian-607-x64.yml │ │ │ │ │ ├── sles-11sp1-x64.yml │ │ │ │ │ ├── debian-70rc1-x64.yml │ │ │ │ │ ├── centos-59-x64-pe.yml │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ ├── lib │ │ │ │ └── facter │ │ │ │ │ ├── iptables_version.rb │ │ │ │ │ └── ip6tables_version.rb │ │ │ ├── Modulefile │ │ │ └── Rakefile │ │ ├── postgresql │ │ │ ├── spec │ │ │ │ ├── spec.opts │ │ │ │ ├── unit │ │ │ │ │ ├── functions │ │ │ │ │ │ ├── postgresql_password_spec.rb │ │ │ │ │ │ └── postgresql_escape_spec.rb │ │ │ │ │ └── classes │ │ │ │ │ │ └── params_spec.rb │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-59-x64.yml │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ ├── centos-510-x64.yml │ │ │ │ │ ├── debian-607-x64.yml │ │ │ │ │ ├── debian-73-x64.yml │ │ │ │ │ ├── ubuntu-server-1404-x64.yml │ │ │ │ │ ├── centos-64-x64-pe.yml │ │ │ │ │ ├── ubuntu-server-10044-x64.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ ├── templates │ │ │ │ ├── systemd-override.erb │ │ │ │ ├── pg_ident_rule.conf │ │ │ │ └── pg_hba_rule.conf │ │ │ ├── .geppetto-rc.json │ │ │ ├── .sync.yml │ │ │ ├── .fixtures.yml │ │ │ └── manifests │ │ │ │ └── lib │ │ │ │ └── perl.pp │ │ ├── elasticsearch │ │ │ ├── spec │ │ │ │ ├── spec_helper.rb │ │ │ │ └── classes │ │ │ │ │ └── 003_elasticsearch_init_unknown_spec.rb │ │ │ ├── .fixtures.yml │ │ │ ├── templates │ │ │ │ └── etc │ │ │ │ │ └── sysconfig │ │ │ │ │ └── defaults.erb │ │ │ ├── Gemfile │ │ │ └── Rakefile │ │ ├── rvm │ │ │ ├── Puppetfile │ │ │ ├── tests │ │ │ │ ├── init.pp │ │ │ │ ├── site.pp │ │ │ │ └── common.yaml │ │ │ ├── manifests │ │ │ │ ├── group.pp │ │ │ │ ├── passenger │ │ │ │ │ └── dependencies │ │ │ │ │ │ ├── oraclelinux.pp │ │ │ │ │ │ └── ubuntu.pp │ │ │ │ ├── gpg.pp │ │ │ │ ├── params.pp │ │ │ │ └── dependencies.pp │ │ │ ├── lib │ │ │ │ └── facter │ │ │ │ │ ├── rvm_installed.rb │ │ │ │ │ └── rvm_version.rb │ │ │ ├── spec │ │ │ │ ├── defines │ │ │ │ │ ├── rvm_system_ruby_spec.rb │ │ │ │ │ └── rvm_alias_spec.rb │ │ │ │ └── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ ├── centos-64-x64.yml │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ ├── debian-73-x64.yml │ │ │ │ │ ├── default.yml │ │ │ │ │ ├── centos-65-x64-docker.yml │ │ │ │ │ ├── ubuntu-server-1310-x64.yml │ │ │ │ │ └── ubuntu-server-12042-x64.yml │ │ │ └── Puppetfile.lock │ │ ├── epel │ │ │ ├── tests │ │ │ │ └── init.pp │ │ │ └── spec │ │ │ │ └── spec_helper.rb │ │ ├── supervisord │ │ │ ├── tests │ │ │ │ ├── group.pp │ │ │ │ └── init.pp │ │ │ ├── templates │ │ │ │ ├── conf │ │ │ │ │ └── group.erb │ │ │ │ └── init │ │ │ │ │ ├── RedHat │ │ │ │ │ └── defaults.erb │ │ │ │ │ └── Debian │ │ │ │ │ └── defaults.erb │ │ │ ├── .fixtures.yml │ │ │ ├── spec │ │ │ │ ├── acceptance │ │ │ │ │ └── nodesets │ │ │ │ │ │ ├── default.yml │ │ │ │ │ │ ├── centos-65-i386.yml │ │ │ │ │ │ ├── centos-65-x64.yml │ │ │ │ │ │ ├── debian-73-i386.yml │ │ │ │ │ │ └── debian-73-x64.yml │ │ │ │ ├── spec_helper.rb │ │ │ │ └── functions │ │ │ │ │ └── array2csv_spec.rb │ │ │ └── manifests │ │ │ │ ├── install.pp │ │ │ │ └── service.pp │ │ ├── solr │ │ │ ├── README.md │ │ │ ├── .gemfile │ │ │ └── Rakefile │ │ ├── redis │ │ │ ├── Gemfile │ │ │ ├── templates │ │ │ │ └── redis.logrotate.erb │ │ │ ├── Rakefile │ │ │ └── tests │ │ │ │ └── init.pp │ │ └── pyenv │ │ │ ├── lib │ │ │ └── puppet │ │ │ │ └── feature │ │ │ │ └── pyenv.rb │ │ │ ├── .fixtures.yml │ │ │ ├── .travis.yml │ │ │ └── Rakefile │ ├── site.pp │ ├── hiera.yaml │ └── nodes │ │ ├── Cron.pp │ │ └── ruby.pp ├── templates │ ├── allinone │ │ └── to-copy │ │ │ └── www │ │ │ └── .gitkeep │ ├── modman │ │ └── to-copy │ │ │ ├── vendor │ │ │ └── .gitkeep │ │ │ ├── www │ │ │ └── .gitkeep │ │ │ └── src │ │ │ └── modman │ └── nginx │ │ └── to-copy │ │ ├── vendor │ │ └── .gitkeep │ │ ├── www │ │ └── .gitkeep │ │ └── src │ │ └── modman ├── .gitattributes └── shell │ ├── ascii-art │ ├── hostmanager-notice.txt │ └── self-promotion.txt │ └── important-notices.sh ├── systemstorage ├── live │ └── database │ │ └── .gitkeep └── .gitignore ├── bin ├── composer ├── n98-magerun ├── .gitattributes └── package2modman.sh ├── .gitattributes └── .gitignore /etc/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.modman/.basedir: -------------------------------------------------------------------------------- 1 | www -------------------------------------------------------------------------------- /puphpet/files/exec-always/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/files/exec-once/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/files/startup-once/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/files/startup-always/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /systemstorage/live/database/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/files/dot/.ssh/.gitignore: -------------------------------------------------------------------------------- 1 | *_id_rsa -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/.sync.yml: -------------------------------------------------------------------------------- 1 | --- 2 | -------------------------------------------------------------------------------- /puphpet/puppet/site.pp: -------------------------------------------------------------------------------- 1 | import 'nodes/*.pp' 2 | -------------------------------------------------------------------------------- /puphpet/templates/allinone/to-copy/www/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/templates/modman/to-copy/vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/templates/modman/to-copy/www/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/templates/nginx/to-copy/vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/templates/nginx/to-copy/www/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/tests/init.pp: -------------------------------------------------------------------------------- 1 | include apache 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/init.pp: -------------------------------------------------------------------------------- 1 | class { 'apt': } 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh eol=lf 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/erlang/.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/tests/init.pp: -------------------------------------------------------------------------------- 1 | class { 'git': } 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/monitor/spec/fixtures/manifests/site.pp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sqlite/tests/init.pp: -------------------------------------------------------------------------------- 1 | include sqlite 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/tests/init.pp: -------------------------------------------------------------------------------- 1 | include stdlib 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/params.pp: -------------------------------------------------------------------------------- 1 | include apt::params 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/beanstalkd/spec/fixtures/manifests/site.pp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/tests/init.pp: -------------------------------------------------------------------------------- 1 | include staging 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Peter Souter (@petems) -------------------------------------------------------------------------------- /puphpet/puppet/modules/sysctl/tests/base.pp: -------------------------------------------------------------------------------- 1 | include sysctl::base 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/tests/dev.pp: -------------------------------------------------------------------------------- 1 | include apache::mod::dev 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/tests/gitosis.pp: -------------------------------------------------------------------------------- 1 | class { 'git::gitosis': } 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/tests/init.pp: -------------------------------------------------------------------------------- 1 | class { '::mongodb': } 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/java.pp: -------------------------------------------------------------------------------- 1 | class { 'mysql::java':} 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/files/sample: -------------------------------------------------------------------------------- 1 | sample file to test module. 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/yum/files/empty/.placeholder: -------------------------------------------------------------------------------- 1 | # Placeholder for git 2 | -------------------------------------------------------------------------------- /puphpet/files/exec-once/01-chmod.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | chmod 0600 /home/vagrant/.ssh/* -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_file_footer.erb: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/rake_tasks' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/perl.pp: -------------------------------------------------------------------------------- 1 | include mysql::bindings::perl 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/ruby.pp: -------------------------------------------------------------------------------- 1 | include mysql::bindings::ruby 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/rake_tasks' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/tests/service.pp: -------------------------------------------------------------------------------- 1 | class { 'rabbitmq::service': } 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/rake_tasks' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/python.pp: -------------------------------------------------------------------------------- 1 | class { 'mysql::bindings::python':} 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/Rakefile: -------------------------------------------------------------------------------- 1 | require 'bodeco_module_helper/rake_tasks' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/rake_tasks' 2 | -------------------------------------------------------------------------------- /bin/composer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schmengler/magento-boilerplate/HEAD/bin/composer -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/dav_fs.conf.erb: -------------------------------------------------------------------------------- 1 | DAVLockDB "<%= @dav_lock %>" 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_serversignature.erb: -------------------------------------------------------------------------------- 1 | ServerSignature Off 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/.puppet-lint.rc: -------------------------------------------------------------------------------- 1 | --no-single_quote_string_with_variables-check 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/unattended_upgrades.pp: -------------------------------------------------------------------------------- 1 | include apt::unattended_upgrades 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/.sync.yml: -------------------------------------------------------------------------------- 1 | --- 2 | spec/spec_helper.rb: 3 | unmanaged: true 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/tests/vhosts/add.pp: -------------------------------------------------------------------------------- 1 | rabbitmq_vhost { ['fooey', 'blah']: } 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --format 3 | progress 4 | --backtrace 5 | -------------------------------------------------------------------------------- /bin/n98-magerun: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schmengler/magento-boilerplate/HEAD/bin/n98-magerun -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/fixtures/files/spec: -------------------------------------------------------------------------------- 1 | # This is a file only for spec testing 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/cgid.conf.erb: -------------------------------------------------------------------------------- 1 | ScriptSock "<%= @cgisock_path %>" 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/templates/vhost/locations/stub_status.erb: -------------------------------------------------------------------------------- 1 | stub_status on; 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/manifests/init.pp: -------------------------------------------------------------------------------- 1 | class puphpet inherits puphpet::params {} 2 | -------------------------------------------------------------------------------- /puphpet/templates/modman/to-copy/src/modman: -------------------------------------------------------------------------------- 1 | # Add modules in this directory, then @import them here -------------------------------------------------------------------------------- /puphpet/templates/nginx/to-copy/src/modman: -------------------------------------------------------------------------------- 1 | # Add modules in this directory, then @import them here -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/dir.conf.erb: -------------------------------------------------------------------------------- 1 | DirectoryIndex <%= @indexes.join(' ') %> 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/mime_magic.conf.erb: -------------------------------------------------------------------------------- 1 | MIMEMagicFile "<%= @magic_file %>" 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | symlinks: 3 | nginx: "#{source_dir}" 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/yum/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/files/exec-once/00-user.sh: -------------------------------------------------------------------------------- 1 | usermod -a -G vagrant www-data 2 | usermod -a -G www-data vagrant 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/builddep.pp: -------------------------------------------------------------------------------- 1 | class { 'apt': } 2 | apt::builddep{ 'glusterfs-server': } 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/composer/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/erlang/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/locales/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mailcatcher/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/server/config.pp: -------------------------------------------------------------------------------- 1 | mysql::server::config { 'testfile': 2 | 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/templates/log.erb: -------------------------------------------------------------------------------- 1 | <% @array_log.each do |path| %><%= path %> 2 | <% end %> 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | symlinks: 3 | stdlib: "#{source_dir}" 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/debian/testing.pp: -------------------------------------------------------------------------------- 1 | class { 'apt': } 2 | class { 'apt::debian::testing': } 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/debian/unstable.pp: -------------------------------------------------------------------------------- 1 | class { 'apt': } 2 | class { 'apt::debian::unstable': } 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/composer/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | symlinks: 3 | "firewall": "#{source_dir}" 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/CHANGELOG: -------------------------------------------------------------------------------- 1 | 2011-06-03 - Dan Bode - 0.0.1 2 | * initial commit 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/bindings.pp: -------------------------------------------------------------------------------- 1 | class { 'mysql::bindings': 2 | php_enable => true, 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/tests/repo/apt.pp: -------------------------------------------------------------------------------- 1 | # requires pupetlabs-apt 2 | include rabbitmq::repo::apt 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/spec/classes/coverage_spec.rb: -------------------------------------------------------------------------------- 1 | at_exit { RSpec::Puppet::Coverage.report! } 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/dav.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::dav { 2 | ::apache::mod { 'dav': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/fixtures/modules/site_apache/templates/fake.conf.erb: -------------------------------------------------------------------------------- 1 | Fake template for rspec. 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/locales/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/server.pp: -------------------------------------------------------------------------------- 1 | class { 'mysql::server': 2 | root_password => 'password', 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sqlite/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/cache.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::cache { 2 | ::apache::mod { 'cache': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/perl.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::perl { 2 | ::apache::mod { 'perl': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/tests/globals.pp: -------------------------------------------------------------------------------- 1 | class { 'mongodb::globals': 2 | manage_package_repo => true 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/spec.opts: -------------------------------------------------------------------------------- 1 | --format 2 | s 3 | --colour 4 | --loadby 5 | mtime 6 | --backtrace 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/actions.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::actions { 2 | apache::mod { 'actions': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/expires.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::expires { 2 | ::apache::mod { 'expires': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/filter.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::filter { 2 | ::apache::mod { 'filter': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/headers.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::headers { 2 | ::apache::mod { 'headers': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/include.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::include { 2 | ::apache::mod { 'include': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/speling.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::speling { 2 | ::apache::mod { 'speling': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/suexec.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::suexec { 2 | ::apache::mod { 'suexec': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/release.pp: -------------------------------------------------------------------------------- 1 | class { 'apt': } 2 | class { 'apt::release': 3 | release_id => 'karmic' 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/tests/init.pp: -------------------------------------------------------------------------------- 1 | class { 'java': 2 | distribution => 'jdk', 3 | version => 'latest', 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sysctl/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/module_spec_helper' 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/tests/php.pp: -------------------------------------------------------------------------------- 1 | class { 'apache': 2 | mpm_module => 'prefork', 3 | } 4 | include apache::mod::php 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/composer/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppet-lint/tasks/puppet-lint' 2 | require 'puppetlabs_spec_helper/rake_tasks' 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/fixtures/modules/my_ntp/templates/ntp.conf.erb: -------------------------------------------------------------------------------- 1 | #my uber ntp config 2 | # 3 | 4 | server foobar 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/auth_basic.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::auth_basic { 2 | ::apache::mod { 'auth_basic': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/authn_file.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::authn_file { 2 | ::apache::mod { 'authn_file': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/authz_user.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::authz_user { 2 | ::apache::mod { 'authz_user': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/python.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::python { 2 | ::apache::mod { 'python': } 3 | } 4 | 5 | 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/elasticsearch/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/module_spec_helper' 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/vhost_alias.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::vhost_alias { 2 | ::apache::mod { 'vhost_alias': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/tests/server.pp: -------------------------------------------------------------------------------- 1 | class { 'mongodb::globals': manage_package_repo => true }-> 2 | class { 'mongodb::server': } 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/files/info/readme/readme: -------------------------------------------------------------------------------- 1 | Default ReadMe File. 2 | Edit puppi/files/info/readme/readme to change this message 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/Puppetfile: -------------------------------------------------------------------------------- 1 | forge 'http://forge.puppetlabs.com' 2 | 3 | metadata 4 | 5 | mod 'puppetlabs/apache', '>= 1.1.0' 6 | -------------------------------------------------------------------------------- /puphpet/files/dot/.gitconfig: -------------------------------------------------------------------------------- 1 | [color] 2 | ui = true 3 | [core] 4 | editor = vim 5 | [alias] 6 | tree = log --oneline --decorate --all --graph 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/auth_kerb.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::auth_kerb { 2 | ::apache::mod { 'auth_kerb': } 3 | } 4 | 5 | 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/authz_default.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::authz_default { 2 | ::apache::mod { 'authz_default': } 3 | } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_action.erb: -------------------------------------------------------------------------------- 1 | <% if @action -%> 2 | 3 | Action <%= @action %> /cgi-bin virtual 4 | <% end -%> 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/composer/lib/facter/composer_home.rb: -------------------------------------------------------------------------------- 1 | Facter.add(:composer_home) do 2 | setcode do 3 | ENV['HOME'] 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/git/bare_init.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-git-bare': 2 | ensure => bare, 3 | provider => git, 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/hg/init_repo.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-hg-init': 2 | ensure => present, 3 | provider => hg, 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/README.md: -------------------------------------------------------------------------------- 1 | # Puppet module: puphpet 2 | 3 | This is a Puppet module for [PuPHPet](https://puphpet.com)-related code 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/Guardfile: -------------------------------------------------------------------------------- 1 | notification :off 2 | 3 | guard 'rake', :task => 'test' do 4 | watch(%r{^manifests\/(.+)\.pp$}) 5 | end 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/bzr/init_repo.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-bzr-init': 2 | ensure => present, 3 | provider => bzr, 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/svn/server.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-svn-server': 2 | ensure => present, 3 | provider => svn, 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_suexec.erb: -------------------------------------------------------------------------------- 1 | <% if @suexec_user_group -%> 2 | 3 | SuexecUserGroup <%= @suexec_user_group %> 4 | <% end -%> 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/ppa.pp: -------------------------------------------------------------------------------- 1 | class { 'apt': } 2 | 3 | # Example declaration of an Apt PPA 4 | apt::ppa{ 'ppa:openstack-ppa/bleeding-edge': } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/epel/tests/init.pp: -------------------------------------------------------------------------------- 1 | # And by test, I mean, run this thing for me using Puppet apply and I'll check 2 | # it out. 3 | include 'epel' 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/templates/conf.d/upstream_member.erb: -------------------------------------------------------------------------------- 1 | server <%= @server %>:<%= @port %> fail_timeout=<%= @upstream_fail_timeout %>; 2 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/git/working_copy_init.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-git-wc': 2 | ensure => present, 3 | provider => git, 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/rewrite.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::rewrite { 2 | include ::apache::params 3 | ::apache::mod { 'rewrite': } 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/reqtimeout.conf.erb: -------------------------------------------------------------------------------- 1 | <% Array(@timeouts).each do |timeout| -%> 2 | RequestReadTimeout <%= timeout %> 3 | <%- end -%> 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/locales/templates/default_locales.erb: -------------------------------------------------------------------------------- 1 | LANG=<%= @default_value %> 2 | LC_CTYPE=<%= @default_value %> 3 | LC_ALL=<%= @default_value %> 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/locales/tests/init.pp: -------------------------------------------------------------------------------- 1 | class { 'locales': 2 | default_value => 'en_US.UTF-8', 3 | available => ['en_GB.UTF-8 UTF-8'] 4 | } -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/spec/fixtures/hiera.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | :backends: - puppet 3 | 4 | :hierarchy: - common 5 | 6 | :puppet: 7 | :datasource: data 8 | -------------------------------------------------------------------------------- /puphpet/files/startup-always/01-chmod.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | find /home/vagrant/www -type d -exec chmod 775 {} \; 3 | find /home/vagrant/www -type f -exec chmod 664 {} \; 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/xsendfile.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::xsendfile { 2 | include ::apache::params 3 | ::apache::mod { 'xsendfile': } 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/confd/no-accf.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | AcceptFilter http none 3 | AcceptFilter https none 4 | 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_charsets.erb: -------------------------------------------------------------------------------- 1 | <% if @add_default_charset -%> 2 | 3 | AddDefaultCharset <%= @add_default_charset %> 4 | <% end -%> 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_fallbackresource.erb: -------------------------------------------------------------------------------- 1 | <% if @fallbackresource -%> 2 | 3 | FallbackResource <%= @fallbackresource %> 4 | <% end -%> 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/lib/facter/git_exec_path.rb: -------------------------------------------------------------------------------- 1 | # git_exec_path.rb 2 | Facter.add('git_exec_path') do 3 | setcode 'git --exec-path 2>/dev/null' 4 | end 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/tests/user/add.pp: -------------------------------------------------------------------------------- 1 | rabbitmq_user { ['blah2', 'blah3', 'blah4']: 2 | password => 'phoey!', 3 | #provider => 'rabbitmqctl', 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/tests/init.pp: -------------------------------------------------------------------------------- 1 | if $::osfamily == 'RedHat' { 2 | class { 'epel': 3 | before => Class['rvm'], 4 | } 5 | } 6 | 7 | class { 'rvm': } 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/tests/site.pp: -------------------------------------------------------------------------------- 1 | if $::osfamily == 'RedHat' { 2 | class { 'epel': 3 | before => Class['rvm'], 4 | } 5 | } 6 | 7 | class { 'rvm': } 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/files/sample.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schmengler/magento-boilerplate/HEAD/puphpet/puppet/modules/staging/files/sample.tar.bz2 -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/files/sample.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schmengler/magento-boilerplate/HEAD/puphpet/puppet/modules/staging/files/sample.tar.gz -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/tests/scope_defaults.pp: -------------------------------------------------------------------------------- 1 | Exec { 2 | path => '/bin', 3 | } 4 | 5 | if scope_defaults('Exec', 'path') { 6 | notice('good') 7 | } 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/tests/group.pp: -------------------------------------------------------------------------------- 1 | supervisord::group { 'mygroup': 2 | priority => 100, 3 | program => ['program1', 'program2', 'program3'] 4 | } -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/tests/init.pp: -------------------------------------------------------------------------------- 1 | class { 'supervisord': 2 | install_pip => true, 3 | install_init => true, 4 | nocleanup => true, 5 | } 6 | -------------------------------------------------------------------------------- /bin/.gitattributes: -------------------------------------------------------------------------------- 1 | # Autodetect text files 2 | * text=auto 3 | 4 | # Force the following filetypes to have unix eols, so Windows does not break them 5 | *.* text eol=lf 6 | -------------------------------------------------------------------------------- /puphpet/files/exec-always/00-symlinks.sh: -------------------------------------------------------------------------------- 1 | rm -rf /var/www/`cat /vagrant/etc/domain` 2 | [ -d /home/vagrant/www ] && ln -fs /home/vagrant/www /var/www/`cat /vagrant/etc/domain` -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_custom_fragment.erb: -------------------------------------------------------------------------------- 1 | <% if @custom_fragment -%> 2 | 3 | ## Custom fragment 4 | <%= @custom_fragment %> 5 | <% end -%> 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/pin.pp: -------------------------------------------------------------------------------- 1 | # pin a release in apt, useful for unstable repositories 2 | apt::pin { 'foo': 3 | packages => '*', 4 | priority => 0, 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/unit/puppet/provider/README.markdown: -------------------------------------------------------------------------------- 1 | Provider Specs 2 | ============== 3 | 4 | Define specs for your providers under this directory. 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/solr/README.md: -------------------------------------------------------------------------------- 1 | 2 | [![Build Status](https://travis-ci.org/example42/puppet-solr.png?branch=master)](https://travis-ci.org/example42/puppet-solr) 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/manifests/.init.pp.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schmengler/magento-boilerplate/HEAD/puphpet/puppet/modules/staging/manifests/.init.pp.swp -------------------------------------------------------------------------------- /systemstorage/.gitignore: -------------------------------------------------------------------------------- 1 | # files/db from live 2 | /live/* 3 | !/live/database 4 | /live/database/* 5 | !/live/database/.gitkeep 6 | 7 | # uncompressed sql files 8 | *.sql -------------------------------------------------------------------------------- /puphpet/.gitattributes: -------------------------------------------------------------------------------- 1 | # Autodetect text files 2 | * text=auto 3 | 4 | # Force the following filetypes to have unix eols, so Windows does not break them 5 | *.* text eol=lf 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/lib/facter/git_version.rb: -------------------------------------------------------------------------------- 1 | # git_version 2 | Facter.add('git_version') do 3 | setcode 'git --version 2>/dev/null'.sub(/git version /, '') 4 | end 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/unit/puppet/type/README.markdown: -------------------------------------------------------------------------------- 1 | Resource Type Specs 2 | =================== 3 | 4 | Define specs for your resource types in this directory. 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/server/account_security.pp: -------------------------------------------------------------------------------- 1 | class { 'mysql::server': 2 | root_password => 'password', 3 | } 4 | class { 'mysql::server::account_security': } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/templates/conf.d/upstream_members.erb: -------------------------------------------------------------------------------- 1 | <% @members.each do |i| %> 2 | server <%= i %> fail_timeout=<%= @upstream_fail_timeout %>;<% end %> 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/tests/deploy.pp: -------------------------------------------------------------------------------- 1 | staging::deploy { 'sample.tar.gz': 2 | source => 'puppet:///modules/staging/sample.tar.gz', 3 | target => '/usr/local', 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/fixtures/dscacheutil/root: -------------------------------------------------------------------------------- 1 | name: root 2 | password: * 3 | uid: 0 4 | gid: 0 5 | dir: /var/root 6 | shell: /bin/bash 7 | gecos: rawr Root 8 | 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/unit/puppet/type/README.markdown: -------------------------------------------------------------------------------- 1 | Resource Type Specs 2 | =================== 3 | 4 | Define specs for your resource types in this directory. 5 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Autodetect text files 2 | * text=auto 3 | 4 | # Force the following files to have unix eols, so Windows does not break them 5 | *.sh text eol=lf 6 | up text eol=lf 7 | -------------------------------------------------------------------------------- /puphpet/files/exec-once/10-modman.sh: -------------------------------------------------------------------------------- 1 | # Modman 2 | curl -s -o /usr/local/bin/modman https://raw.githubusercontent.com/colinmollenhour/modman/master/modman 3 | chmod +x /usr/local/bin/modman -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_allow_encoded_slashes.erb: -------------------------------------------------------------------------------- 1 | <%- if @allow_encoded_slashes -%> 2 | 3 | AllowEncodedSlashes <%= @allow_encoded_slashes %> 4 | <%- end -%> 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/composer/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | git: "git://github.com/puppetlabs/puppetlabs-git" 4 | symlinks: 5 | composer: "#{source_dir}" 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | vcsrepo: git://github.com/puppetlabs/puppetlabs-vcsrepo.git 4 | symlinks: 5 | git: "#{source_dir}" 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | stdlib: http://github.com/puppetlabs/puppetlabs-stdlib.git 4 | symlinks: 5 | java: "#{source_dir}" 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/templates/apache/mod/spdy/php-wrapper.erb: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | PHP_FCGI_MAX_REQUESTS=10000 4 | export PHP_FCGI_MAX_REQUESTS 5 | 6 | exec <%= @phpcgi %> 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/templates/conf/group.erb: -------------------------------------------------------------------------------- 1 | [group:<%= @name %>] 2 | programs=<%= @progstring %> 3 | <% if @priority -%> 4 | priority=<%= @priority %> 5 | <% end -%> 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/authnz_ldap.conf.erb: -------------------------------------------------------------------------------- 1 | <% if @verifyServerCert == true -%> 2 | LDAPVerifyServerCert On 3 | <% else -%> 4 | LDAPVerifyServerCert Off 5 | <% end -%> 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/templates/vhost/locations/alias.erb: -------------------------------------------------------------------------------- 1 | alias <%= @location_alias %>; 2 | <% if defined? @autoindex -%> 3 | autoindex <%= @autoindex %>; 4 | <% end -%> 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | "stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git" 4 | symlinks: 5 | "ntp": "#{source_dir}" 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/files/xdebug_cli_alias.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | XDEBUG_CONFIG="idekey=xdebug" php -dxdebug.remote_host=`echo $SSH_CLIENT | cut -d "=" -f 2 | awk '{print $1}'` "$@" 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/spec/README.markdown: -------------------------------------------------------------------------------- 1 | Specs 2 | ===== 3 | 4 | The Puppet project uses RSpec for testing. 5 | 6 | For more information on RSpec, see http://rspec.info/ 7 | 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/tests/server.pp: -------------------------------------------------------------------------------- 1 | class { 'rabbitmq::server': 2 | port => '5672', 3 | delete_guest_user => true, 4 | version => 'latest', 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/files/exec-always/01-chmod.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | chmod 0600 /home/vagrant/.ssh/* 3 | [ -d /var/www/`cat /vagrant/etc/domain` ] && chown -R www-data:www-data /var/www/`cat /vagrant/etc/domain`/ -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/listen.erb: -------------------------------------------------------------------------------- 1 | <%# Listen should always be one of: 2 | - 3 | - : 4 | - [ 5 | -%> 6 | Listen <%= @listen_addr_port %> 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/tests/init.pp: -------------------------------------------------------------------------------- 1 | concat { '/tmp/concat': 2 | ensure => present, 3 | force => true, 4 | owner => 'root', 5 | group => 'root', 6 | mode => '0644', 7 | } 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/files/plugins/amqp_client-2.3.1.ez: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schmengler/magento-boilerplate/HEAD/puphpet/puppet/modules/rabbitmq/files/plugins/amqp_client-2.3.1.ez -------------------------------------------------------------------------------- /puphpet/puppet/modules/sysctl/templates/sysctl.d-file.erb: -------------------------------------------------------------------------------- 1 | <% if @comment -%> 2 | <% @comment.each do |line| -%> 3 | # <%= line %> 4 | <% end -%> 5 | <% end -%> 6 | <%= @title %> = <%= @value %> 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sysctl/tests/init.pp: -------------------------------------------------------------------------------- 1 | sysctl { 'net.ipv4.ip_forward': value => '1' } 2 | sysctl { 'net.core.somaxconn': value => '65536' } 3 | sysctl { 'vm.swappiness': ensure => absent } 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/negotiation.conf.erb: -------------------------------------------------------------------------------- 1 | LanguagePriority <%= Array(@language_priority).join(' ') %> 2 | ForceLanguagePriority <%= Array(@force_language_priority).join(' ') %> 3 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mailcatcher/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib.git" 4 | symlinks: 5 | mailcatcher: "#{source_dir}" 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/lib/facter/php_fact_version.rb: -------------------------------------------------------------------------------- 1 | Facter.add("php_fact_version") do 2 | setcode do 3 | Facter::Util::Resolution.exec('php-config --version') || nil 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/files/plugins/rabbit_stomp-2.3.1.ez: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schmengler/magento-boilerplate/HEAD/puphpet/puppet/modules/rabbitmq/files/plugins/rabbit_stomp-2.3.1.ez -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/manifests/group.pp: -------------------------------------------------------------------------------- 1 | # Create the RVM group 2 | class rvm::group inherits rvm::params { 3 | ensure_resource('group', $rvm::params::group, {'ensure' => 'present' }) 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib.git" 4 | symlinks: 5 | swap_file: "#{source_dir}" 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/bzr/branch.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-bzr-branch': 2 | ensure => present, 3 | provider => bzr, 4 | source => 'lp:do', 5 | revision => '1312', 6 | } 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/git/clone.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-git-clone': 2 | ensure => present, 3 | provider => git, 4 | source => 'git://github.com/bruce/rtex.git', 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/proxy_ajp.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::proxy_ajp { 2 | Class['::apache::mod::proxy'] -> Class['::apache::mod::proxy_ajp'] 3 | ::apache::mod { 'proxy_ajp': } 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/elasticsearch/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | stdlib: git://github.com/puppetlabs/puppetlabs-stdlib.git 4 | symlinks: 5 | elasticsearch: "#{source_dir}" 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/mysql_grant.pp: -------------------------------------------------------------------------------- 1 | mysql_grant{'test1@localhost/redmine.*': 2 | user => 'test1@localhost', 3 | table => 'redmine.*', 4 | privileges => ['UPDATE'], 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/Puppetfile: -------------------------------------------------------------------------------- 1 | forge 'http://forge.puppetlabs.com' 2 | 3 | mod 'puppetlabs/stdlib', '>= 3.0.0' 4 | mod 'puppetlabs/apt', '>= 1.0.0' 5 | mod 'puppetlabs/concat', '>= 1.1.0' 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/templates/systemd-override.erb: -------------------------------------------------------------------------------- 1 | .include /lib/systemd/system/postgresql.service 2 | [Service] 3 | Environment=PGPORT=<%= @port %> 4 | Environment=PGDATA=<%= @datadir %> 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/lib/facter/rvm_installed.rb: -------------------------------------------------------------------------------- 1 | Facter.add("rvm_installed") do 2 | rvm_binary = "/usr/local/rvm/bin/rvm" 3 | 4 | setcode do 5 | File.exists? rvm_binary 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.vagrant 2 | /.modman/* 3 | !/.modman/.basedir 4 | /www/* 5 | !/www/.gitkeep 6 | /vendor/* 7 | !/vendor/.gitkeep 8 | /var/* 9 | !/var/.gitkeep 10 | /deploy/* 11 | /puphpet/files/dot/ssh 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/.geppetto-rc.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludes": [ 3 | "**/contrib/**", 4 | "**/examples/**", 5 | "**/tests/**", 6 | "**/spec/**", 7 | "**/pkg/**" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/.puppet-lint.rc: -------------------------------------------------------------------------------- 1 | --relative 2 | --no-single_quote_string_with_variables-check 3 | --no-80chars-check 4 | --no-class_inherits_from_params_class-check 5 | --no-documentation-check 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/proxy_http.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::proxy_http { 2 | Class['::apache::mod::proxy'] -> Class['::apache::mod::proxy_http'] 3 | ::apache::mod { 'proxy_http': } 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/rake_tasks' 2 | require 'puppet-lint/tasks/puppet-lint' 3 | 4 | PuppetLint.configuration.send('disable_single_quote_string_with_variables') 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/composer/spec/fixtures/manifests/site.pp: -------------------------------------------------------------------------------- 1 | node default { 2 | include composer 3 | 4 | composer::exec {'ohai': 5 | cmd => 'install', 6 | cwd => '/some/cool/dir', 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/.geppetto-rc.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludes": [ 3 | "**/contrib/**", 4 | "**/examples/**", 5 | "**/tests/**", 6 | "**/spec/**", 7 | "**/pkg/**" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/tests/common.yaml: -------------------------------------------------------------------------------- 1 | rvm::system_rubies: 2 | '1.9': {} 3 | '2.0': 4 | default_use: true 5 | '2.1': {} 6 | 'jruby-1.7': {} 7 | 8 | rvm::system_users: 9 | - root 10 | -------------------------------------------------------------------------------- /puphpet/files/startup-always/10-envconfig.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Devbox specific Magento settings handled by LimeSoda_EnvironmentConfiguration 5 | # 6 | 7 | cd /home/vagrant 8 | n98-magerun ls:env:configure dev -------------------------------------------------------------------------------- /puphpet/puppet/hiera.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | :backends: yaml 3 | :yaml: 4 | :datadir: '/vagrant/puphpet' 5 | :hierarchy: 6 | - config-custom 7 | - config 8 | :merge_behavior: deeper 9 | :logger: console 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/fcgid.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | <% @options.sort_by {|key, value| key}.each do |key, value| -%> 3 | <%= key %> <%= value %> 4 | <% end -%> 5 | 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_rack.erb: -------------------------------------------------------------------------------- 1 | <% if @rack_base_uris -%> 2 | 3 | ## Enable rack 4 | <% Array(@rack_base_uris).each do |uri| -%> 5 | RackBaseURI <%= uri %> 6 | <% end -%> 7 | <% end -%> 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/manifests/install.pp: -------------------------------------------------------------------------------- 1 | # 2 | class ntp::install inherits ntp { 3 | 4 | package { 'ntp': 5 | ensure => $package_ensure, 6 | name => $package_name, 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/.geppetto-rc.json: -------------------------------------------------------------------------------- 1 | { 2 | "excludes": [ 3 | "**/contrib/**", 4 | "**/examples/**", 5 | "**/tests/**", 6 | "**/spec/**", 7 | "**/pkg/**" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/svn/checkout.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-svn-checkout': 2 | ensure => present, 3 | provider => svn, 4 | source => 'http://svn.edgewall.org/repos/babel/trunk', 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/.gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | puppetversion = ENV['PUPPET_VERSION'] 4 | gem 'puppet', puppetversion, :require => false 5 | gem 'puppet-lint' 6 | gem 'puppetlabs_spec_helper', '>= 0.1.0' 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/lib/facter/php_fact_extension_dir.rb: -------------------------------------------------------------------------------- 1 | Facter.add("php_fact_extension_dir") do 2 | setcode do 3 | Facter::Util::Resolution.exec('php-config --extension-dir') || nil 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/templates/pg_ident_rule.conf: -------------------------------------------------------------------------------- 1 | 2 | # Rule Name: <%=@name%> 3 | # Description: <%=@description%> 4 | # Order: <%=@order%> 5 | <%=@map_name%> <%=@system_username%> <%=@database_username%> 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/tests/erlang_deps.pp: -------------------------------------------------------------------------------- 1 | # install first the garethr-erlang module. See README.md 2 | include 'erlang' 3 | 4 | class { 'erlang': epel_enable => true} 5 | Class['erlang'] -> Class['rabbitmq'] 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/solr/.gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | puppetversion = ENV['PUPPET_VERSION'] 4 | gem 'puppet', puppetversion, :require => false 5 | gem 'puppet-lint' 6 | gem 'puppetlabs_spec_helper', '>= 0.1.0' 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/tests/has_ip_network.pp: -------------------------------------------------------------------------------- 1 | include stdlib 2 | info('has_ip_network(\'127.0.0.0\'):', has_ip_network('127.0.0.0')) 3 | info('has_ip_network(\'128.0.0.0\'):', has_ip_network('128.0.0.0')) 4 | 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/hg/clone.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-hg-clone': 2 | ensure => present, 3 | provider => hg, 4 | source => 'http://hg.basho.com/riak', 5 | revision => 'riak-0.5.3', 6 | } 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/tests/apache.pp: -------------------------------------------------------------------------------- 1 | include apache 2 | include apache::mod::php 3 | include apache::mod::cgi 4 | include apache::mod::userdir 5 | include apache::mod::disk_cache 6 | include apache::mod::proxy_http 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/redis/Gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7'] 4 | 5 | gem 'rake' 6 | gem 'puppet-lint' 7 | gem 'puppet', puppetversion 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/tests/has_ip_address.pp: -------------------------------------------------------------------------------- 1 | include stdlib 2 | info('has_ip_address(\'192.168.1.256\'):', has_ip_address('192.168.1.256')) 3 | info('has_ip_address(\'127.0.0.1\'):', has_ip_address('127.0.0.1')) 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/load.erb: -------------------------------------------------------------------------------- 1 | <% if @loadfiles -%> 2 | <% Array(@loadfiles).each do |loadfile| -%> 3 | LoadFile <%= loadfile %> 4 | <% end -%> 5 | 6 | <% end -%> 7 | LoadModule <%= @_id %> <%= @_path %> 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/manifests/passenger/dependencies/oraclelinux.pp: -------------------------------------------------------------------------------- 1 | # Package dependencies for Passenger on Oracle Linux 2 | class rvm::passenger::dependencies::oraclelinux { 3 | ensure_packages(['libcurl-devel']) 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/manifests/passenger/dependencies/ubuntu.pp: -------------------------------------------------------------------------------- 1 | # Package dependencies for Passenger on Ubuntu 2 | class rvm::passenger::dependencies::ubuntu { 3 | ensure_packages(['curl','libcurl4-gnutls-dev']) 4 | } 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/cvs/remote.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-cvs-workspace-remote': 2 | ensure => present, 3 | provider => cvs, 4 | source => ':pserver:anonymous@cvs.sv.gnu.org:/sources/leetcvrt', 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/dev.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::dev { 2 | # Development packages are not apache modules 3 | warning('apache::mod::dev is deprecated; please use apache::dev') 4 | include ::apache::dev 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_docroot.erb: -------------------------------------------------------------------------------- 1 | 2 | ## Vhost docroot 3 | <% if @virtual_docroot -%> 4 | VirtualDocumentRoot "<%= @virtual_docroot %>" 5 | <% else -%> 6 | DocumentRoot "<%= @docroot %>" 7 | <% end -%> 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | "stdlib": 4 | "repo": "git://github.com/puppetlabs/puppetlabs-stdlib.git" 5 | "ref": "v2.2.1" 6 | symlinks: 7 | "apt": "#{source_dir}" 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | 'stdlib': 4 | repo: 'git://github.com/puppetlabs/puppetlabs-stdlib.git' 5 | ref: '4.2.0' 6 | symlinks: 7 | 'concat': '#{source_dir}' 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/elasticsearch/templates/etc/sysconfig/defaults.erb: -------------------------------------------------------------------------------- 1 | ### MANAGED BY PUPPET ### 2 | 3 | <% scope.lookupvar('elasticsearch::init_defaults').sort.map do |key, value| -%> 4 | <%= key %>=<%= value %> 5 | <% end -%> 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/redis/templates/redis.logrotate.erb: -------------------------------------------------------------------------------- 1 | <%= @conf_logfile_real %> { 2 | weekly 3 | rotate 10 4 | copytruncate 5 | delaycompress 6 | compress 7 | notifempty 8 | missingok 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/Modulefile: -------------------------------------------------------------------------------- 1 | name 'puppetlabs/vcsrepo' 2 | version '0.2.0' 3 | summary 'Manage repositories from various version control systems' 4 | description 'Manage repositories from various version control systems' 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/namevirtualhost.erb: -------------------------------------------------------------------------------- 1 | <%# NameVirtualHost should always be one of: 2 | - * 3 | - *: 4 | - _default_: 5 | - 6 | - : 7 | -%> 8 | NameVirtualHost <%= @addr_port %> 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/ports_header.erb: -------------------------------------------------------------------------------- 1 | # ************************************ 2 | # Listen & NameVirtualHost resources in module puppetlabs-apache 3 | # Managed by Puppet 4 | # ************************************ 5 | 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/tests/alternative.pp: -------------------------------------------------------------------------------- 1 | class { 'java': 2 | package => 'jdk-8u25-linux-x64', 3 | java_alternative => 'jdk1.8.0_25', 4 | java_alternative_path => '/usr/java/jdk1.8.0_25/jre/bin/java' 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/redis/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppet-lint/tasks/puppet-lint' 2 | 3 | PuppetLint.configuration.send("disable_80chars") 4 | PuppetLint.configuration.send('disable_class_parameter_defaults') 5 | 6 | task :default => :lint 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/support/fixture_helpers.rb: -------------------------------------------------------------------------------- 1 | module FixtureHelpers 2 | 3 | def fixture(name, ext = '.txt') 4 | File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', name.to_s + ext)) 5 | end 6 | 7 | end 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/beanstalkd/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rake' 2 | 3 | require 'rspec/core/rake_task' 4 | 5 | task :default => [:spec] 6 | 7 | 8 | RSpec::Core::RakeTask.new(:spec) do |t| 9 | t.pattern = 'spec/*/*_spec.rb' 10 | end 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/epel/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | 3 | def default_facts 4 | { 5 | :osfamily => 'RedHat', 6 | :operatingsystem => 'CentOS', 7 | } 8 | end 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/templates/pg_hba_rule.conf: -------------------------------------------------------------------------------- 1 | 2 | # Rule Name: <%=@name%> 3 | # Description: <%=@description%> 4 | # Order: <%=@order%> 5 | <%=@type%> <%=@database%> <%=@user%> <%=@address%> <%=@auth_method%> <%=@auth_option%> 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/fixtures/bzr_version_info.txt: -------------------------------------------------------------------------------- 1 | revision-id: menesis@pov.lt-20100309191856-4wmfqzc803fj300x 2 | date: 2010-03-09 21:18:56 +0200 3 | build-date: 2010-03-14 00:42:43 -0800 4 | revno: 2634 5 | branch-nick: mytest 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/lib/facter/last_run.rb: -------------------------------------------------------------------------------- 1 | require 'facter' 2 | Facter.add("last_run") do 3 | confine :kernel => [ 'Linux' , 'SunOS' , 'FreeBSD' , 'Darwin' ] 4 | setcode do 5 | Facter::Util::Resolution.exec('date') 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sysctl/Gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | puppetversion = ENV['PUPPET_VERSION'] 4 | gem 'puppet', puppetversion, :require => false 5 | gem 'puppet-lint' 6 | gem 'rspec-puppet' 7 | gem 'puppetlabs_spec_helper', '>= 0.4.0' 8 | 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | "stdlib": "https://github.com/puppetlabs/puppetlabs-stdlib" 4 | "staging": "https://github.com/nanliu/puppet-staging" 5 | symlinks: 6 | "mysql": "#{source_dir}" 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/rake_tasks' 3 | require 'puppet-lint' 4 | PuppetLint.configuration.send("disable_80chars") 5 | PuppetLint.configuration.send('disable_class_parameter_defaults') 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/templates/rabbitmq-env.conf.erb: -------------------------------------------------------------------------------- 1 | <%- @environment_variables.keys.sort.each do |key| -%> 2 | <%- if @environment_variables[key] != 'UNSET' -%> 3 | <%= key %>=<%= @environment_variables[key] %> 4 | <%- end -%> 5 | <%- end -%> 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/manifests/gpg.pp: -------------------------------------------------------------------------------- 1 | # RVM's GPG key security signing mechanism requires gpg2 for key import / validation 2 | 3 | class rvm::gpg($package = $rvm::params::gpg_package) inherits rvm::params { 4 | ensure_packages([$package]) 5 | } 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/solr/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/rake_tasks' 3 | require 'puppet-lint' 4 | PuppetLint.configuration.send("disable_80chars") 5 | PuppetLint.configuration.send('disable_class_parameter_defaults') 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | "stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git" 4 | "apt": "git://github.com/puppetlabs/puppetlabs-apt.git" 5 | symlinks: 6 | "mongodb": "#{source_dir}" 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/manifests/replset.pp: -------------------------------------------------------------------------------- 1 | # Wrapper class useful for hiera based deployments 2 | 3 | class mongodb::replset( 4 | $sets = undef 5 | ) { 6 | 7 | if $sets { 8 | create_resources(mongodb_replset, $sets) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/monitor/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/rake_tasks' 3 | require 'puppet-lint' 4 | PuppetLint.configuration.send("disable_80chars") 5 | PuppetLint.configuration.send('disable_class_parameter_defaults') 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/fixtures/files/negotiation.conf: -------------------------------------------------------------------------------- 1 | # This is a file only for spec testing 2 | 3 | LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW 4 | ForceLanguagePriority Prefer Fallback 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/elasticsearch/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | puppetversion = ENV['PUPPET_VERSION'] 4 | gem 'puppet', puppetversion, :require => false 5 | gem 'puppet-lint' 6 | gem 'rspec-puppet' 7 | gem 'puppetlabs_spec_helper', '>= 0.1.0' 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | "concat": "git://github.com/puppetlabs/puppetlabs-concat.git" 4 | "stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git" 5 | symlinks: 6 | "puppi": "#{source_dir}" 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/yum/.gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | puppetversion = ENV['PUPPET_VERSION'] 4 | gem 'puppet', puppetversion, :require => false 5 | gem 'puppet-lint' 6 | gem 'puppetlabs_spec_helper', '>= 0.1.0' 7 | gem 'rspec-puppet', '0.1.6' 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/deflate.conf.erb: -------------------------------------------------------------------------------- 1 | <%- @types.sort.each do |type| -%> 2 | AddOutputFilterByType DEFLATE <%= type %> 3 | <%- end -%> 4 | 5 | <%- @notes.sort.each do |type,note| -%> 6 | DeflateFilterNote <%= type %> <%=note %> 7 | <%- end -%> 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | 3 | RSpec.configure do |c| 4 | c.default_facts = { 5 | :kernel => 'Linux', 6 | :concat_basedir => '/var/lib/puppet/concat', 7 | } 8 | end 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/files/info/readme/readme-default: -------------------------------------------------------------------------------- 1 | No extra node or role related info available. 2 | To have node or role specific extar info, create 3 | modules/puppi/files/info/readme/readme--$hostname or 4 | modules/puppi/files/info/readme/readme-$role 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sysctl/spec/classes/sysctl_base_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'sysctl::base', :type => :class do 4 | 5 | it { should create_class('sysctl::base') } 6 | it { should contain_file('/etc/sysctl.d') } 7 | 8 | end 9 | 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/yum/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/rake_tasks' 3 | require 'puppet-lint/tasks/puppet-lint' 4 | PuppetLint.configuration.send('disable_80chars') 5 | PuppetLint.configuration.send('disable_class_parameter_defaults') 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/fixtures/templates/negotiation.conf.erb: -------------------------------------------------------------------------------- 1 | # This is a template only for spec testing 2 | 3 | LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW 4 | ForceLanguagePriority Prefer Fallback 5 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/disk_cache.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | CacheEnable disk / 4 | CacheRoot "<%= @cache_root %>" 5 | CacheDirLevels 2 6 | CacheDirLength 1 7 | 8 | 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_serveralias.erb: -------------------------------------------------------------------------------- 1 | <% if @serveraliases and ! @serveraliases.empty? -%> 2 | 3 | ## Server aliases 4 | <%- Array(@serveraliases).each do |serveralias| -%> 5 | ServerAlias <%= serveralias %> 6 | <%- end -%> 7 | <% end -%> 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/key.pp: -------------------------------------------------------------------------------- 1 | # Declare Apt key for apt.puppetlabs.com source 2 | apt::key { 'puppetlabs': 3 | key => '4BD6EC30', 4 | key_server => 'pgp.mit.edu', 5 | key_options => 'http-proxy="http://proxyuser:proxypass@example.org:3128"', 6 | } 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/tests/upstream.pp: -------------------------------------------------------------------------------- 1 | include nginx 2 | 3 | nginx::resource::upstream { 'proxypass': 4 | ensure => present, 5 | members => [ 6 | 'localhost:3000', 7 | 'localhost:3001', 8 | 'localhost:3002', 9 | ], 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/.gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | puppetversion = ENV['PUPPET_VERSION'] 4 | gem 'puppet', puppetversion, :require => false 5 | gem 'puppet-lint' 6 | gem 'puppetlabs_spec_helper', '>= 0.1.0' 7 | gem 'puppet-blacksmith', '>= 2.0.0' 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/manifests/two.pp: -------------------------------------------------------------------------------- 1 | # Class: puppi::two 2 | # 3 | # Installs Puppi NextGen 4 | # 5 | class puppi::two { 6 | 7 | # The Puppi command 8 | package { 'puppi': 9 | ensure => present, 10 | provider => 'gem', 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/fixtures/hg_parents.txt: -------------------------------------------------------------------------------- 1 | changeset: 3:34e6012c783a 2 | parent: 2:21ea4598c962 3 | parent: 1:9d0ff0028458 4 | user: Test User 5 | date: Fri Aug 07 13:13:02 2009 -0400 6 | summary: merge 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/fastcgi/server.erb: -------------------------------------------------------------------------------- 1 | FastCGIExternalServer <%= @faux_path %> -idle-timeout <%= @timeout %> <%= if @flush then '-flush' end %> -host <%= @host %> 2 | Alias <%= @fcgi_alias %> <%= @faux_path %> 3 | Action <%= @file_type %> <%= @fcgi_alias %> 4 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/tests/init.pp: -------------------------------------------------------------------------------- 1 | node default { 2 | 3 | notify { 'enduser-before': } 4 | notify { 'enduser-after': } 5 | 6 | class { 'ntp': 7 | require => Notify['enduser-before'], 8 | before => Notify['enduser-after'], 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/templates/extra-ini.erb: -------------------------------------------------------------------------------- 1 | ; File Managed by Puppet 2 | 3 | <% if @value != "" -%> 4 | <% if @value.is_a? Array -%> 5 | <% @value.each do |name| -%> 6 | <%= name %> 7 | <% end %> 8 | <% else -%> 9 | <%= value %> 10 | <% end -%> 11 | <% end -%> 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/pyenv/lib/puppet/feature/pyenv.rb: -------------------------------------------------------------------------------- 1 | require 'puppet/util/feature' 2 | 3 | Puppet.features.add(:pyenv) { 4 | if not Facter.value('pyenv_binary').nil? 5 | File.executable?(Facter.value('pyenv_binary')) 6 | else 7 | true 8 | end 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/examples/backup.pp: -------------------------------------------------------------------------------- 1 | class { 'mysql::server': 2 | root_password => 'password' 3 | } 4 | 5 | class { 'mysql::server::backup': 6 | backupuser => 'myuser', 7 | backuppassword => 'mypassword', 8 | backupdir => '/tmp/backups', 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/lib/facter/rvm_version.rb: -------------------------------------------------------------------------------- 1 | Facter.add("rvm_version") do 2 | rvm_binary = "/usr/local/rvm/bin/rvm" 3 | 4 | setcode do 5 | File.exists?(rvm_binary) ? `#{rvm_binary} version`.strip.match(/rvm ([0-9]+\.[0-9]+\.[0-9]+) .*/)[1] : nil 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/tests/file_line.pp: -------------------------------------------------------------------------------- 1 | # This is a simple smoke test 2 | # of the file_line resource type. 3 | file { '/tmp/dansfile': 4 | ensure => present 5 | }-> 6 | file_line { 'dans_line': 7 | line => 'dan is awesome', 8 | path => '/tmp/dansfile', 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/default_mods/load.pp: -------------------------------------------------------------------------------- 1 | # private define 2 | define apache::default_mods::load ($module = $title) { 3 | if defined("apache::mod::${module}") { 4 | include "::apache::mod::${module}" 5 | } else { 6 | ::apache::mod { $module: } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/cgi.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::cgi { 2 | case $::osfamily { 3 | 'FreeBSD': {} 4 | default: { 5 | Class['::apache::mod::prefork'] -> Class['::apache::mod::cgi'] 6 | } 7 | } 8 | 9 | ::apache::mod { 'cgi': } 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/manifests/gitosis.pp: -------------------------------------------------------------------------------- 1 | # Class: gitosis 2 | # 3 | # This installs and configures gitosis 4 | # 5 | # Requires: 6 | # - Class[git] 7 | # 8 | class git::gitosis { 9 | include ::git 10 | package {'gitosis': 11 | ensure => present 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/tests/location_alias.pp: -------------------------------------------------------------------------------- 1 | include nginx 2 | 3 | nginx::resource::location { 'www.test.com-alias': 4 | ensure => present, 5 | location => '/some/url', 6 | location_alias => '/new/url/', 7 | vhost => 'www.test.com', 8 | } 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/templates/spec.erb: -------------------------------------------------------------------------------- 1 | # This is a template used only for rspec tests 2 | 3 | # Yaml of the whole scope 4 | <%= scope.to_hash.reject { |k,v| !( k.is_a?(String) && v.is_a?(String) ) }.to_yaml %> 5 | 6 | # Custom Options 7 | <%= options['opt_a'] %> 8 | <%= options['opt_b'] %> 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/unit/functions/postgresql_password_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'postgresql_password', :type => :puppet_function do 4 | it { is_expected.to run.with_params('foo', 'bar'). 5 | and_return('md596948aad3fcae80c08a35c9b5958cd89') } 6 | end 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/rake_tasks' 3 | require 'puppet_blacksmith/rake_tasks' 4 | require 'puppet-lint' 5 | PuppetLint.configuration.send("disable_80chars") 6 | PuppetLint.configuration.send('disable_class_parameter_defaults') 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/monkey_patches/alias_should_to_must.rb: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env ruby -S rspec 2 | require 'rspec' 3 | 4 | class Object 5 | # This is necessary because the RAL has a 'should' 6 | # method. 7 | alias :must :should 8 | alias :must_not :should_not 9 | end 10 | -------------------------------------------------------------------------------- /puphpet/puppet/nodes/Cron.pp: -------------------------------------------------------------------------------- 1 | if $cron_values == undef { $cron_values = hiera_hash('cron', false) } 2 | 3 | each( $cron_values['jobs'] ) |$key, $job| { 4 | # Deletes empty cron jobs 5 | $job_values = delete_values($job, '') 6 | 7 | create_resources(cron, { "${key}" => $job_values }) 8 | } 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/fastcgi.conf.erb: -------------------------------------------------------------------------------- 1 | # The Fastcgi Apache module configuration file is being 2 | # managed by Puppet and changes will be overwritten. 3 | 4 | AddHandler fastcgi-script .fcgi 5 | FastCgiIpcDir "<%= @fastcgi_lib_path %>" 6 | 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_logging.erb: -------------------------------------------------------------------------------- 1 | <% if @error_log or @log_level -%> 2 | 3 | ## Logging 4 | <% end -%> 5 | <% if @error_log -%> 6 | ErrorLog "<%= @error_log_destination %>" 7 | <% end -%> 8 | <% if @log_level -%> 9 | LogLevel <%= @log_level %> 10 | <% end -%> 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1404-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-14.04-64 6 | box: puppetlabs/ubuntu-14.04-64-nocm 7 | hypervisor : vagrant 8 | CONFIG: 9 | type: foss 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/.sync.yml: -------------------------------------------------------------------------------- 1 | --- 2 | .travis.yml: 3 | extras: 4 | - rvm: 1.9.3 5 | env: PUPPET_GEM_VERSION="~> 3.5" STRICT_VARIABLES="yes" 6 | - rvm: 2.0.0 7 | env: PUPPET_GEM_VERSION="~> 3.5" STRICT_VARIABLES="yes" 8 | spec/spec_helper.rb: 9 | unmanaged: true 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/defines/rvm_system_ruby_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'rvm_system_ruby' do 4 | 5 | let(:title) { '2.0' } 6 | 7 | context "when using default parameters", :compile do 8 | it { should contain_rvm_system_ruby('2.0') } 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/erlang/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | apt: git://github.com/puppetlabs/puppetlabs-apt.git 4 | stdlib: git://github.com/puppetlabs/puppetlabs-stdlib.git 5 | epel: git://github.com/stahnma/puppet-module-epel.git 6 | symlinks: 7 | erlang: "#{source_dir}" 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/templates/my.cnf.pass.erb: -------------------------------------------------------------------------------- 1 | [client] 2 | user=root 3 | host=localhost 4 | <% unless scope.lookupvar('mysql::server::root_password') == 'UNSET' -%> 5 | password='<%= scope.lookupvar('mysql::server::root_password') %>' 6 | <% end -%> 7 | socket=<%= @options['client']['socket'] -%> 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/pyenv/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | stdlib: 4 | "repo": "git://github.com/puppetlabs/puppetlabs-stdlib.git" 5 | "ref": "3.2.1" 6 | vcsrepo: "git://github.com/puppetlabs/puppetlabs-vcsrepo.git" 7 | symlinks: 8 | apache: "#{source_dir}" 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | group :development, :test do 4 | gem 'bodeco_module_helper', :git => 'https://github.com/bodeco/bodeco_module_helper.git' 5 | gem 'rspec', "~> 2.11.0", :require => false 6 | gem 'mocha', "~> 0.10.5", :require => false 7 | end 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/beanstalkd/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'rspec-puppet' 2 | 3 | fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures')) 4 | 5 | RSpec.configure do |c| 6 | c.module_path = File.join(fixture_path, 'modules') 7 | c.manifest_dir = File.join(fixture_path, 'manifests') 8 | end 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sysctl/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/rake_tasks' 3 | require 'puppet-lint' 4 | PuppetLint.configuration.send("disable_80chars") 5 | PuppetLint.configuration.send("disable_autoloader_layout") 6 | PuppetLint.configuration.send("disable_quoted_booleans") 7 | 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib.git" 4 | concat: "git://github.com/puppetlabs/puppetlabs-concat.git" 5 | portage: "git://github.com/gentoo/puppet-portage.git" 6 | symlinks: 7 | apache: "#{source_dir}" 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/manifests/update.pp: -------------------------------------------------------------------------------- 1 | class apt::update { 2 | include apt::params 3 | 4 | exec { 'apt_update': 5 | command => "${apt::params::provider} update", 6 | logoutput => 'on_failure', 7 | refreshonly => true, 8 | timeout => $apt::update_timeout, 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/templates/init/RedHat/defaults.erb: -------------------------------------------------------------------------------- 1 | # this is sourced by the supervisord init script 2 | # written by jkoppe 3 | 4 | set -a 5 | 6 | # should probably put both of these options as runtime arguments 7 | OPTIONS="-c <%= @config_file %>" 8 | PIDFILE=<%= @run_path %><%= @pid_file %> 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sysctl/Modulefile: -------------------------------------------------------------------------------- 1 | name 'thias-sysctl' 2 | version '0.3.0' 3 | source 'git://github.com/thias/puppet-sysctl' 4 | author 'Matthias Saou' 5 | license 'Apache 2.0' 6 | summary 'Sysctl module' 7 | description "Manage sysctl variable values." 8 | project_page 'https://github.com/thias/puppet-sysctl' 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/lib/facter/concat_basedir.rb: -------------------------------------------------------------------------------- 1 | # == Fact: concat_basedir 2 | # 3 | # A custom fact that sets the default location for fragments 4 | # 5 | # "${::vardir}/concat/" 6 | # 7 | Facter.add("concat_basedir") do 8 | setcode do 9 | File.join(Puppet[:vardir],"concat") 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/templates/apache/mod/spdy/spdy_conf.erb: -------------------------------------------------------------------------------- 1 | # FcgidMaxRequestsPerProcess should be <= PHP_FCGI_MAX_REQUESTS 2 | FcgidMaxRequestsPerProcess 10000 3 | 4 | 5 | AddHandler fcgid-script .php 6 | Options +ExecCGI 7 | FcgidWrapper /usr/local/bin/php-wrapper .php 8 | 9 | -------------------------------------------------------------------------------- /puphpet/shell/ascii-art/hostmanager-notice.txt: -------------------------------------------------------------------------------- 1 | ============================================================ 2 | You have the Vagrant::HostManager plugin installed. 3 | You may be required to enter your host's root/privileged 4 | password below to continue! 5 | ============================================================ 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/mpm_event.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | StartServers 2 3 | MinSpareThreads 25 4 | MaxSpareThreads 75 5 | ThreadLimit 64 6 | ThreadsPerChild 25 7 | MaxClients 150 8 | MaxRequestsPerChild 0 9 | 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/lib/facter/windows_common_appdata.rb: -------------------------------------------------------------------------------- 1 | require 'facter' 2 | Facter.add(:windows_common_appdata) do 3 | confine :operatingsystem => :windows 4 | if Facter.value(:osfamily) == "windows" 5 | require 'win32/dir' 6 | end 7 | setcode do 8 | Dir::COMMON_APPDATA 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/tests/permissions/add.pp: -------------------------------------------------------------------------------- 1 | rabbitmq_user { 'blah7': 2 | password => 'foo', 3 | } 4 | rabbitmq_vhost { 'test5': } 5 | rabbitmq_user_permissions { 'blah7@test5': 6 | configure_permission => 'config2', 7 | read_permission => 'ready', 8 | #write_permission => 'ready', 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/.sync.yml: -------------------------------------------------------------------------------- 1 | --- 2 | .travis.yml: 3 | script: "\"bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--color --format documentation'\"" 4 | Rakefile: 5 | unmanaged: true 6 | Gemfile: 7 | unmanaged: true 8 | spec/spec_helper.rb: 9 | unmanaged: true 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/tests/mods.pp: -------------------------------------------------------------------------------- 1 | ## Default mods 2 | 3 | # Base class. Declares default vhost on port 80 and default ssl 4 | # vhost on port 443 listening on all interfaces and serving 5 | # $apache::docroot, and declaring our default set of modules. 6 | class { 'apache': 7 | default_mods => true, 8 | } 9 | 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/composer/.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | rvm: 3 | - 1.9.3 4 | before_script: 5 | after_script: 6 | script: "bundle exec rake spec" 7 | env: 8 | - PUPPET_VERSION=2.7.23 9 | - PUPPET_VERSION=3.0.2 10 | - PUPPET_VERSION=3.2.4 11 | - PUPPET_VERSION=3.3.0 12 | notifications: 13 | email: false 14 | -------------------------------------------------------------------------------- /bin/package2modman.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | for dir in .modman/*/ 3 | do 4 | dir=${dir%*/} 5 | if [ ! -f $dir/modman ] && [ -f $dir/package.xml ]; then 6 | echo ${dir##*/} does not contain a modman file, autogenerating from package.xml... 7 | php $(dirname $0)/package2modman.php $dir/package.xml > $dir/modman 8 | fi 9 | done -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/proxy_connect.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::proxy_connect ( 2 | $apache_version = $::apache::apache_version, 3 | ) { 4 | if versioncmp($apache_version, '2.4') >= 0 { 5 | Class['::apache::mod::proxy'] -> Class['::apache::mod::proxy_connect'] 6 | ::apache::mod { 'proxy_connect': } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/manifests/devel.pp: -------------------------------------------------------------------------------- 1 | # Class php::devel 2 | # 3 | # Installs php devel package 4 | # 5 | class php::devel { 6 | 7 | if $php::package_devel != '' 8 | and ! defined(Package[$php::package_devel]) { 9 | package { $php::package_devel : 10 | ensure => $php::manage_package, 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/manifests/params.pp: -------------------------------------------------------------------------------- 1 | # Default module parameters 2 | class rvm::params() { 3 | 4 | $group = $::operatingsystem ? { 5 | default => 'rvm', 6 | } 7 | 8 | $proxy_url = undef 9 | 10 | $gpg_package = $::osfamily ? { 11 | /(Debian|RedHat)/ => 'gnupg2', 12 | default => undef, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/unit/puppet/type/anchor_spec.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'spec_helper' 4 | 5 | anchor = Puppet::Type.type(:anchor).new(:name => "ntp::begin") 6 | 7 | describe anchor do 8 | it "should stringify normally" do 9 | expect(anchor.to_s).to eq("Anchor[ntp::begin]") 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/lib/facter/iptables_version.rb: -------------------------------------------------------------------------------- 1 | Facter.add(:iptables_version) do 2 | confine :kernel => :linux 3 | setcode do 4 | version = Facter::Util::Resolution.exec('iptables --version') 5 | if version 6 | version.match(/\d+\.\d+\.\d+/).to_s 7 | else 8 | nil 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/tests/plugin.pp: -------------------------------------------------------------------------------- 1 | class { 'rabbitmq::server': 2 | config_stomp => true, 3 | } 4 | 5 | $rabbitmq_plugins = [ 'amqp_client', 'rabbitmq_stomp' ] 6 | 7 | rabbitmq_plugin { $rabbitmq_plugins: 8 | ensure => present, 9 | require => Class['rabbitmq::server'], 10 | provider => 'rabbitmqplugins', 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/lib/puppet_spec/verbose.rb: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env ruby -S rspec 2 | # Support code for running stuff with warnings disabled. 3 | module Kernel 4 | def with_verbose_disabled 5 | verbose, $VERBOSE = $VERBOSE, nil 6 | result = yield 7 | $VERBOSE = verbose 8 | return result 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | 'stdlib': 4 | repo: 'git://github.com/puppetlabs/puppetlabs-stdlib' 5 | ref: '4.1.0' 6 | 'concat': 7 | repo: 'git://github.com/puppetlabs/puppetlabs-concat' 8 | ref: '1.0.1' 9 | symlinks: 10 | supervisord: "#{source_dir}" -------------------------------------------------------------------------------- /puphpet/files/dot/.bash_login: -------------------------------------------------------------------------------- 1 | # dot files are copied for all users but we don't want to display the login message for root 2 | # .profile must be sourced explicitly because it is not used if .bash_login exists. 3 | 4 | if [ "$USER" = "vagrant" ]; then 5 | source ~/.profile 6 | cat /vagrant/README.NFO | sed s/{DOMAIN}/`cat /vagrant/etc/domain`/ 7 | fi -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/listen.pp: -------------------------------------------------------------------------------- 1 | define apache::listen { 2 | $listen_addr_port = $name 3 | 4 | # Template uses: $listen_addr_port 5 | concat::fragment { "Listen ${listen_addr_port}": 6 | ensure => present, 7 | target => $::apache::ports_file, 8 | content => template('apache/listen.erb'), 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/tests/mod_load_params.pp: -------------------------------------------------------------------------------- 1 | # Tests the path and identifier parameters for the apache::mod class 2 | 3 | # Base class for clarity: 4 | class { 'apache': } 5 | 6 | 7 | # Exaple parameter usage: 8 | apache::mod { 'testmod': 9 | path => '/usr/some/path/mod_testmod.so', 10 | id => 'testmod_custom_name', 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/Modulefile: -------------------------------------------------------------------------------- 1 | name 'puppetlabs-firewall' 2 | version '1.1.1' 3 | source 'git://github.com/puppetlabs/puppetlabs-firewall.git' 4 | author 'puppetlabs' 5 | license 'ASL 2.0' 6 | summary 'Firewall Module' 7 | description 'Manages Firewalls such as iptables' 8 | project_page 'http://forge.puppetlabs.com/puppetlabs/firewall' 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/lib/facter/ip6tables_version.rb: -------------------------------------------------------------------------------- 1 | Facter.add(:ip6tables_version) do 2 | confine :kernel => :linux 3 | setcode do 4 | version = Facter::Util::Resolution.exec('ip6tables --version') 5 | if version 6 | version.match(/\d+\.\d+\.\d+/).to_s 7 | else 8 | nil 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/manifests/init.pp: -------------------------------------------------------------------------------- 1 | # Class: git 2 | # 3 | # This class installs git 4 | # 5 | # Actions: 6 | # - Install the git package 7 | # 8 | # Sample Usage: 9 | # class { 'git': } 10 | # 11 | class git { 12 | if ! defined(Package['git']) { 13 | package { 'git': 14 | ensure => present 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/manifests/package/freebsd.pp: -------------------------------------------------------------------------------- 1 | # Class: nginx::package::freebsd 2 | # 3 | # Manage the nginx package on FreeBSD 4 | class nginx::package::freebsd ( 5 | $package_name = 'nginx', 6 | $package_ensure = 'present' 7 | ) { 8 | 9 | package { $package_name: 10 | ensure => $package_ensure, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/tests/init.pp: -------------------------------------------------------------------------------- 1 | # The notify before should always come BEFORE all resources 2 | # managed by the nginx class 3 | # and the notify last should always come AFTER all resources 4 | # managed by the nginx class. 5 | node default { 6 | notify { 'before': } 7 | -> class { 'nginx': } 8 | -> notify { 'last': } 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/templates/source.list.erb: -------------------------------------------------------------------------------- 1 | # <%= @name %> 2 | deb <% if @architecture %>[arch=<%= @architecture %>] <% end %><%= @location %> <%= @release_real %> <%= @repos %> 3 | <%- if @include_src then -%> 4 | deb-src <% if @architecture %>[arch=<%= @architecture %>] <% end %><%= @location %> <%= @release_real %> <%= @repos %> 5 | <%- end -%> 6 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/beanstalkd/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7'] 4 | 5 | 6 | gem 'rake' 7 | gem 'rspec-expectations' 8 | gem 'rspec' 9 | gem 'facter' 10 | gem 'puppet', puppetversion 11 | gem 'rspec-puppet' 12 | gem 'puppetlabs_spec_helper' 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/README_SPECS.markdown: -------------------------------------------------------------------------------- 1 | NOTE 2 | ==== 3 | 4 | This project's specs depend on puppet core, and thus they require the 5 | `puppetlabs_spec_helper` project. For more information please see the README 6 | in that project, which can be found here: [puppetlabs spec 7 | helper](https://github.com/puppetlabs/puppetlabs_spec_helper) 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/fixtures/git_branch_a.txt: -------------------------------------------------------------------------------- 1 | feature/foo 2 | feature/bar 3 | feature/baz 4 | feature/quux 5 | only/local 6 | * master 7 | refactor/foo 8 | origin/HEAD 9 | origin/feature/foo 10 | origin/feature/bar 11 | origin/feature/baz 12 | origin/feature/quux 13 | origin/only/remote 14 | origin/master 15 | -------------------------------------------------------------------------------- /puphpet/files/exec-once/11-n98magerun.sh: -------------------------------------------------------------------------------- 1 | # n98-magerun 2 | curl -s -o /usr/local/bin/n98-magerun https://raw.githubusercontent.com/netz98/n98-magerun/master/n98-magerun.phar 3 | chmod +x /usr/local/bin/n98-magerun 4 | 5 | wget -q -O /etc/bash_completion.d/n98-magerun.phar https://raw.githubusercontent.com/netz98/n98-magerun/master/autocompletion/bash/bash_complete -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mailcatcher/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/rake_tasks' 2 | require 'puppet-lint/tasks/puppet-lint' 3 | 4 | PuppetLint.configuration.send('disable_class_inherits_from_params_class') 5 | PuppetLint.configuration.send("disable_80chars") 6 | PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/lib/facter/staging_windir.rb: -------------------------------------------------------------------------------- 1 | Facter.add(:staging_windir) do 2 | confine :osfamily => :windows 3 | setcode do 4 | program_data = `echo %SYSTEMDRIVE%\\ProgramData`.chomp 5 | if File.directory? program_data 6 | "#{program_data}\\staging" 7 | else 8 | "C:\\staging" 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/examples/cvs/local.pp: -------------------------------------------------------------------------------- 1 | vcsrepo { '/tmp/vcstest-cvs-repo': 2 | ensure => present, 3 | provider => cvs, 4 | } 5 | 6 | vcsrepo { '/tmp/vcstest-cvs-workspace-local': 7 | ensure => present, 8 | provider => cvs, 9 | source => '/tmp/vcstest-cvs-repo', 10 | require => Vcsrepo['/tmp/vcstest-cvs-repo'], 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/shell/ascii-art/self-promotion.txt: -------------------------------------------------------------------------------- 1 | 2 | ____ ____ _ _ ____ _ generated using 3 | | _ \ _ _| _ \| | | | _ \ ___| |_ ___ ___ _ __ ___ 4 | | |_) | | | | |_) | |_| | |_) / _ \ __| / __/ _ \| '_ ` _ \ 5 | | __/| |_| | __/| _ | __/ __/ |_ | (_| (_) | | | | | | 6 | |_| \__,_|_| |_| |_|_| \___|\__(_)___\___/|_| |_| |_| 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/namevirtualhost.pp: -------------------------------------------------------------------------------- 1 | define apache::namevirtualhost { 2 | $addr_port = $name 3 | 4 | # Template uses: $addr_port 5 | concat::fragment { "NameVirtualHost ${addr_port}": 6 | ensure => present, 7 | target => $::apache::ports_file, 8 | content => template('apache/namevirtualhost.erb'), 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/centos-59-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-59-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/centos-59-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-59-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/elasticsearch/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'puppetlabs_spec_helper/rake_tasks' 3 | require 'puppet-lint' 4 | require './spec/lib/template_check_task.rb' 5 | require './spec/lib/parser_validate_task.rb' 6 | PuppetLint.configuration.send("disable_80chars") 7 | PuppetLint.configuration.send("disable_class_inherits_from_params_class") 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/rake_tasks' 2 | 3 | require 'puppet-lint/tasks/puppet-lint' 4 | PuppetLint.configuration.ignore_paths = ['vendor/**/*.pp'] 5 | 6 | task :default do 7 | sh %{rake -T} 8 | end 9 | 10 | desc 'Run reasonably quick tests for CI' 11 | task :ci => [ 12 | :lint, 13 | :spec, 14 | ] 15 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/centos-59-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-59-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/centos-59-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-59-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/templates/apache/custom_fragment.erb: -------------------------------------------------------------------------------- 1 | <%= @vhost['custom_fragment'] %> 2 | <% if (!@require_mod_php) && (@vhost.has_key?('engine')) %> 3 | <% if (@vhost['engine'] == 'php') && (@fcgi_string.split.join.length > 0) %> 4 | ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://<%= @fcgi_string %><%= @vhost['docroot'] %>/$1 5 | <% end %> 6 | <% end %> 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/files/scripts/execute.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # execute.sh - Made for Puppi 3 | # This script just executes what is passed as argument 4 | 5 | # Sources common header for Puppi scripts 6 | . $(dirname $0)/header || exit 10 7 | 8 | #parse variables 9 | command=$(eval "echo "$*"") 10 | 11 | #execute command 12 | eval "${command}" 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/defines/rvm_alias_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'rvm_alias' do 4 | 5 | let(:title) { '2.0' } 6 | let(:params) {{ :target_ruby => '2.0-384' }} 7 | 8 | context "when using default parameters", :compile do 9 | it { should contain_rvm_alias('2.0').with_target_ruby('2.0-384') } 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/centos-59-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-59-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/fixtures/git_branch_feature_bar.txt: -------------------------------------------------------------------------------- 1 | feature/foo 2 | * feature/bar 3 | feature/baz 4 | feature/quux 5 | only/local 6 | master 7 | refactor/foo 8 | origin/HEAD 9 | origin/feature/foo 10 | origin/feature/bar 11 | origin/feature/baz 12 | origin/feature/quux 13 | origin/only/remote 14 | origin/master 15 | -------------------------------------------------------------------------------- /puphpet/shell/important-notices.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | VAGRANT_CORE_FOLDER=$(cat '/.puphpet-stuff/vagrant-core-folder.txt') 4 | 5 | if [[ -f '/.puphpet-stuff/displayed-important-notices' ]]; then 6 | exit 0 7 | fi 8 | 9 | cat "${VAGRANT_CORE_FOLDER}/shell/ascii-art/important-notices.txt" 10 | 11 | touch '/.puphpet-stuff/displayed-important-notices' 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/debian-607-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-607-x64: 3 | roles: 4 | - master 5 | platform: debian-6-amd64 6 | box : debian-607-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/fedora-18-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | fedora-18-x64: 3 | roles: 4 | - master 5 | platform: fedora-18-x86_64 6 | box : fedora-18-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/sles-11-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | sles-11-x64.local: 3 | roles: 4 | - master 5 | platform: sles-11-x64 6 | box : sles-11sp1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/sles-11sp1-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | sles-11sp1-x64: 3 | roles: 4 | - master 5 | platform: sles-11-x86_64 6 | box : sles-11sp1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/centos-59-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-59-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/fedora-18-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | fedora-18-x64: 3 | roles: 4 | - master 5 | platform: fedora-18-x86_64 6 | box : fedora-18-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/centos-64-x64-fusion.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-fusion503-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-fusion503-nocm.box 8 | hypervisor : fusion 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/debian-607-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-607-x64: 3 | roles: 4 | - master 5 | platform: debian-6-amd64 6 | box : debian-607-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/fedora-18-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | fedora-18-x64: 3 | roles: 4 | - master 5 | platform: fedora-18-x86_64 6 | box : fedora-18-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/sles-11sp1-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | sles-11sp1-x64: 3 | roles: 4 | - master 5 | platform: sles-11-x86_64 6 | box : sles-11sp1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/acceptance/nodesets/fedora-18-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | fedora-18-x64: 3 | roles: 4 | - master 5 | platform: fedora-18-x86_64 6 | box : fedora-18-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/centos-510-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-510-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-510-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-510-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/fedora-18-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | fedora-18-x64: 3 | roles: 4 | - master 5 | platform: fedora-18-x86_64 6 | box : fedora-18-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/sles-11-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | sles-11-x64.local: 3 | roles: 4 | - master 5 | platform: sles-11-x64 6 | box : sles-11sp1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/nodesets/fedora-18-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | fedora-18-x64: 3 | roles: 4 | - master 5 | platform: fedora-18-x86_64 6 | box : fedora-18-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/nodesets/sles-11-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | sles-11-x64.local: 3 | roles: 4 | - master 5 | platform: sles-11-x64 6 | box : sles-11sp1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/centos-59-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-59-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-vbox436-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/sqlite/manifests/init.pp: -------------------------------------------------------------------------------- 1 | # Class: sqlite 2 | # 3 | # This class manages the installation of the sqlite 4 | # database. 5 | # 6 | # Sample Usage: 7 | # class { 'sqlite': } 8 | class sqlite { 9 | package { 'sqlite': 10 | ensure => installed, 11 | } 12 | 13 | file { '/var/lib/sqlite/': 14 | ensure => directory, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/fedora-18-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | fedora-18-x64: 3 | roles: 4 | - master 5 | platform: fedora-18-x86_64 6 | box : fedora-18-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/sles-11-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | sles-11-x64.local: 3 | roles: 4 | - master 5 | platform: sles-11-x64 6 | box : sles-11sp1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-73-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-73-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/centos-64-x64-fusion.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-fusion503-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-fusion503-nocm.box 8 | hypervisor : fusion 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/debian-607-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-607-x64: 3 | roles: 4 | - master 5 | platform: debian-6-amd64 6 | box : debian-607-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/sles-11sp1-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | sles-11sp1-x64: 3 | roles: 4 | - master 5 | platform: sles-11-x86_64 6 | box : sles-11sp1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/acceptance/nodesets/multi-centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/acceptance/nodesets/sles-11-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | sles-11-x64.local: 3 | roles: 4 | - master 5 | platform: sles-11-x64 6 | box : sles-11sp1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/centos-510-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-510-x64: 3 | roles: 4 | - master 5 | platform: el-5-x86_64 6 | box : centos-510-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-510-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/debian-607-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-607-x64: 3 | roles: 4 | - master 5 | platform: debian-6-amd64 6 | box : debian-607-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/debian-73-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-73-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-73-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/manifests/firewall/post.pp: -------------------------------------------------------------------------------- 1 | # This depends on puppetlabs/firewall: https://github.com/puppetlabs/puppetlabs-firewall 2 | # Firewall rules to be setup after custom rules 3 | class puphpet::firewall::post { 4 | 5 | firewall { '999 drop all': 6 | proto => 'all', 7 | action => 'drop', 8 | before => undef, 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/pyenv/.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | bundler_args: --without development debug acceptance 3 | script: "bundle exec rake lint" 4 | rvm: 5 | - 1.8.7 6 | - 1.9.3 7 | env: 8 | matrix: 9 | - PUPPET_GEM_VERSION="~> 3.4.0" 10 | - PUPPET_GEM_VERSION="~> 3.5.0" 11 | matrix: 12 | fast_finish: true 13 | notifications: 14 | email: false 15 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/manifests/install.pp: -------------------------------------------------------------------------------- 1 | # Class supervisord::install 2 | # 3 | # Installs supervisor package (defaults to using pip) 4 | # 5 | class supervisord::install inherits supervisord { 6 | package { $supervisord::package_name: 7 | ensure => $supervisord::package_ensure, 8 | provider => $supervisord::package_provider 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/spec/acceptance/nodesets/centos-65-i386.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-i386: 3 | roles: 4 | - master 5 | platform: el-6-i386 6 | box : centos-65-i386-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-i386-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/centos-70-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-70-x64: 3 | roles: 4 | - master 5 | platform: el-7-x86_64 6 | box : puppetlabs/centos-7.0-64-nocm 7 | box_url : https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-nocm 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: verbose 11 | type: foss 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/spec/acceptance/nodesets/debian-70rc1-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-70rc1-x64: 3 | roles: 4 | - master 5 | platform: debian-70rc1-x64 6 | box : debian-70rc1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-70rc1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/debian-70rc1-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-70rc1-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-70rc1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-70rc1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/debian-70rc1-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-70rc1-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-70rc1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-70rc1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/debian-70rc1-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-70rc1-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-70rc1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-70rc1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - default 6 | platform: el-6-x86_64 7 | box : centos-64-x64-vbox4210-nocm 8 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 9 | hypervisor : vagrant 10 | CONFIG: 11 | type: foss 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/templates/conf.d/map.erb: -------------------------------------------------------------------------------- 1 | map <%= @string %> $<%= @name %> { 2 | <% if @hostnames -%> 3 | hostnames; 4 | <% end -%> 5 | <% if @default -%> 6 | default <%= @default %>; 7 | <% end -%> 8 | <% if @mappings -%> 9 | <%- @mappings.sort_by{|k,v| k}.each do |key,value| -%> 10 | <%= key %> <%= value %>; 11 | <%- end -%> 12 | <% end -%> 13 | } 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/spec/acceptance/nodesets/debian-73-i386.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-73-i386: 3 | roles: 4 | - master 5 | platform: debian-7-i386 6 | box : debian-73-i386-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-i386-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/spec/acceptance/nodesets/debian-73-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-73-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-73-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/templates/init/Debian/defaults.erb: -------------------------------------------------------------------------------- 1 | # Defaults for supervisor initscript 2 | # sourced by /etc/init.d/supervisor 3 | # installed at /etc/default/supervisor by the maintainer scripts 4 | 5 | # 6 | # This is a POSIX shell fragment 7 | # 8 | 9 | # Additional options that are passed to the Daemon. 10 | DAEMON_OPTS="-c <%= @config_file %>" 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/fixtures/git_branch_none.txt: -------------------------------------------------------------------------------- 1 | feature/foo 2 | feature/bar 3 | feature/baz 4 | feature/quux 5 | only/local 6 | master 7 | * (no branch) 8 | refactor/foo 9 | origin/HEAD 10 | origin/feature/foo 11 | origin/feature/bar 12 | origin/feature/baz 13 | origin/feature/quux 14 | origin/only/remote 15 | origin/master 16 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_file_header.erb: -------------------------------------------------------------------------------- 1 | # ************************************ 2 | # Vhost template in module puppetlabs-apache 3 | # Managed by Puppet 4 | # ************************************ 5 | 6 | > 7 | ServerName <%= @servername %> 8 | <% if @serveradmin -%> 9 | ServerAdmin <%= @serveradmin %> 10 | <% end -%> 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/git/Modulefile: -------------------------------------------------------------------------------- 1 | name 'puppetlabs-git' 2 | version '0.0.3' 3 | source 'git://github.com/puppetlabs/puppetlabs-git.git' 4 | author 'puppetlabs' 5 | license 'Apache 2.0' 6 | summary 'module for installing git' 7 | description 'module for installing git' 8 | project_page 'https://github.com/puppetlabs/puppetlabs-git/' 9 | dependency 'puppetlabs/vcsrepo' 10 | 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/Puppetfile.lock: -------------------------------------------------------------------------------- 1 | FORGE 2 | remote: http://forge.puppetlabs.com 3 | specs: 4 | puppetlabs/apt (1.2.0) 5 | puppetlabs/stdlib (>= 2.2.1) 6 | puppetlabs/concat (1.1.0) 7 | puppetlabs/stdlib (4.1.0) 8 | 9 | DEPENDENCIES 10 | puppetlabs/apt (>= 1.0.0) 11 | puppetlabs/concat (>= 1.1.0) 12 | puppetlabs/stdlib (>= 3.0.0) 13 | 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | require 'simplecov' 3 | require 'support/filesystem_helpers' 4 | require 'support/fixture_helpers' 5 | 6 | SimpleCov.start do 7 | add_filter "/spec/" 8 | end 9 | 10 | RSpec.configure do |c| 11 | c.include FilesystemHelpers 12 | c.include FixtureHelpers 13 | end 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/.sync.yml: -------------------------------------------------------------------------------- 1 | --- 2 | .travis.yml: 3 | extras: 4 | - rvm: 1.9.3 5 | env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes" 6 | - rvm: 2.0.0 7 | env: PUPPET_GEM_VERSION="~> 3.5.0" STRICT_VARIABLES="yes" 8 | Rakefile: 9 | extra_disabled_lint_checks: 10 | - 'disable_only_variable_string' 11 | spec/spec_helper.rb: 12 | unmanaged: true 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/version.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::version( 2 | $apache_version = $::apache::apache_version 3 | ) { 4 | 5 | if ($::osfamily == 'debian' and versioncmp($apache_version, '2.4') >= 0) { 6 | warning("${module_name}: module version_module is built-in and can't be loaded") 7 | } else { 8 | ::apache::mod { 'version': } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-64-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/itk.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | StartServers <%= @startservers %> 3 | MinSpareServers <%= @minspareservers %> 4 | MaxSpareServers <%= @maxspareservers %> 5 | ServerLimit <%= @serverlimit %> 6 | MaxClients <%= @maxclients %> 7 | MaxRequestsPerChild <%= @maxrequestsperchild %> 8 | 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/ldap.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | SetHandler ldap-status 3 | <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%> 4 | Require ip 127.0.0.1 ::1 5 | <%- else -%> 6 | Order deny,allow 7 | Deny from all 8 | Allow from 127.0.0.1 ::1 9 | Satisfy all 10 | <%- end -%> 11 | 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/templates/apache/hhvm-httpd.conf.erb: -------------------------------------------------------------------------------- 1 | <%= scope.function_template(['apache/httpd.conf.erb']) -%> 2 | 3 | FastCgiExternalServer <%= @docroot %>/hhvm.external -host <%= @hhvm_values['settings']['host'] %>:<%= @hhvm_values['settings']['port'] %> 4 | AddHandler hhvm .php 5 | Action hhvm /usr/lib/cgi-bin/hhvm.external 6 | Alias /usr/lib/cgi-bin/ <%= @docroot %>/ 7 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/acceptance/nodesets/centos-65-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box : centos-65-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/spec/acceptance/nodesets/centos-64-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | box: centos-64-x64-vbox4210-nocm 7 | box_url: http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 8 | hypervisor: vagrant 9 | CONFIG: 10 | log_level: verbose 11 | type: foss 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/debian-607-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-607-x64: 3 | roles: 4 | - master 5 | platform: debian-6-amd64 6 | box : debian-607-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/debian-73-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-73-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-73-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/fedora-18-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | fedora-18-x64: 3 | roles: 4 | - master 5 | platform: fedora-18-x86_64 6 | box : fedora-18-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/fedora-18-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/prefork.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | StartServers <%= @startservers %> 3 | MinSpareServers <%= @minspareservers %> 4 | MaxSpareServers <%= @maxspareservers %> 5 | ServerLimit <%= @serverlimit %> 6 | MaxClients <%= @maxclients %> 7 | MaxRequestsPerChild <%= @maxrequestsperchild %> 8 | 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_additional_includes.erb: -------------------------------------------------------------------------------- 1 | <% Array(@additional_includes).each do |include| -%> 2 | 3 | ## Load additional static includes 4 | <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 && @use_optional_includes -%> 5 | IncludeOptional "<%= include %>" 6 | <%- else -%> 7 | Include "<%= include %>" 8 | <%- end -%> 9 | 10 | <% end -%> 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/unit/classes/params_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'postgresql::params', :type => :class do 4 | let :facts do 5 | { 6 | :osfamily => 'Debian', 7 | :operatingsystem => 'Debian', 8 | :operatingsystemrelease => '6.0', 9 | } 10 | end 11 | it { is_expected.to contain_class("postgresql::params") } 12 | end 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/acceptance/nodesets/debian-73-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-73-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-73-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/manifests/service.pp: -------------------------------------------------------------------------------- 1 | # Class: supervisord::service 2 | # 3 | # Class for the supervisord service 4 | # 5 | class supervisord::service inherits supervisord { 6 | service { $supervisord::service_name: 7 | ensure => $supervisord::service_ensure, 8 | enable => true, 9 | hasrestart => true, 10 | hasstatus => true 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/vcsrepo/spec/fixtures/svn_info.txt: -------------------------------------------------------------------------------- 1 | Path: . 2 | URL: http://example.com/svn/trunk 3 | Repository Root: http://example.com/svn 4 | Repository UUID: 75246ace-e253-0410-96dd-a7613ca8dc81 5 | Revision: 4 6 | Node Kind: directory 7 | Schedule: normal 8 | Last Changed Author: jon 9 | Last Changed Rev: 3 10 | Last Changed Date: 2008-08-07 11:34:25 -0700 (Thu, 07 Aug 2008) 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/proxy.pp: -------------------------------------------------------------------------------- 1 | # Class: apache::proxy 2 | # 3 | # This class enabled the proxy module for Apache 4 | # 5 | # Actions: 6 | # - Enables Apache Proxy module 7 | # 8 | # Requires: 9 | # 10 | # Sample Usage: 11 | # 12 | class apache::proxy { 13 | warning('apache::proxy is deprecated; please use apache::mod::proxy') 14 | include ::apache::mod::proxy 15 | } 16 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/debian-73-i386.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-73-i386: 3 | roles: 4 | - master 5 | platform: debian-7-i386 6 | box : debian-73-i386-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-i386-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_header.erb: -------------------------------------------------------------------------------- 1 | <% if @headers and ! @headers.empty? -%> 2 | 3 | ## Header rules 4 | ## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header 5 | <%- Array(@headers).each do |header_statement| -%> 6 | <%- if header_statement != '' -%> 7 | Header <%= header_statement %> 8 | <%- end -%> 9 | <%- end -%> 10 | <% end -%> 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-server-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/erlang/Gemfile: -------------------------------------------------------------------------------- 1 | source "http://rubygems.org" 2 | 3 | 4 | gem "rake" 5 | gem "puppet", ENV['PUPPET_VERSION'] || '~> 3.2.0' 6 | gem "puppet-lint" 7 | gem "rspec-puppet", '~> 1.0.0' 8 | gem "puppetlabs_spec_helper" 9 | gem "rspec-system-puppet" 10 | gem "vagrant-wrapper" 11 | gem "puppet-syntax" 12 | 13 | group :development do 14 | gem "puppet-blacksmith" 15 | end 16 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1404-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-14.04-amd64 6 | box : puppetlabs/ubuntu-14.04-64-nocm 7 | box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/manifests/client/install.pp: -------------------------------------------------------------------------------- 1 | class mysql::client::install { 2 | 3 | if $mysql::client::package_manage { 4 | 5 | package { 'mysql_client': 6 | ensure => $mysql::client::package_ensure, 7 | install_options => $mysql::client::install_options, 8 | name => $mysql::client::package_name, 9 | } 10 | 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1404-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-14.04-amd64 6 | box : puppetlabs/ubuntu-14.04-64-nocm 7 | box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | image: devopsil/puppet:3.5.1 7 | # ip: localhost 8 | hypervisor : docker 9 | docker_image_commands: 10 | - yum -y install tar 11 | - useradd vagrant 12 | CONFIG: 13 | log_level: debug 14 | type: git 15 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/yum/Modulefile: -------------------------------------------------------------------------------- 1 | name 'example42-yum' 2 | version '2.1.16' 3 | author 'Alessandro Franceschi' 4 | license 'Apache2' 5 | project_page 'http://www.example42.com' 6 | source 'https://github.com/example42/puppet-yum' 7 | summary 'Puppet module for yum' 8 | description 'This module installs and manages yum and yum repositories' 9 | dependency 'example42/puppi', '> 2.0.0' 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/proxy_balancer.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::proxy_balancer { 2 | 3 | include ::apache::mod::proxy 4 | include ::apache::mod::proxy_http 5 | 6 | Class['::apache::mod::proxy'] -> Class['::apache::mod::proxy_balancer'] 7 | Class['::apache::mod::proxy_http'] -> Class['::apache::mod::proxy_balancer'] 8 | ::apache::mod { 'proxy_balancer': } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/debian-70rc1-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-70rc1-x64: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-70rc1-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-70rc1-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1404-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-14.04-amd64 6 | box : puppetlabs/ubuntu-14.04-64-nocm 7 | box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_suphp.erb: -------------------------------------------------------------------------------- 1 | <% if @suphp_engine == 'on' -%> 2 | <%- if @suphp_addhandler -%> 3 | suPHP_AddHandler <%= @suphp_addhandler %> 4 | <%- end -%> 5 | <%- if @suphp_engine -%> 6 | suPHP_Engine <%= @suphp_engine %> 7 | <%- end -%> 8 | <%- if @suphp_configpath -%> 9 | suPHP_ConfigPath "<%= @suphp_configpath %>" 10 | <%- end -%> 11 | <% end -%> 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/manifests/release.pp: -------------------------------------------------------------------------------- 1 | # release.pp 2 | 3 | class apt::release ( 4 | $release_id 5 | ) { 6 | 7 | include apt::params 8 | 9 | $root = $apt::params::root 10 | 11 | file { "${root}/apt.conf.d/01release": 12 | owner => root, 13 | group => root, 14 | mode => '0644', 15 | content => "APT::Default-Release \"${release_id}\";" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/debian-73-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | debian-73-x64.localhost: 3 | roles: 4 | - master 5 | platform: debian-7-amd64 6 | box : debian-73-x64-virtualbox-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: foss 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1404-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-14.04-amd64 6 | box : puppetlabs/ubuntu-14.04-64-nocm 7 | box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/.travis/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/rake_tasks' 2 | 3 | # use librarian-puppet to manage fixtures instead of .fixtures.yml 4 | # offers more possibilities like explicit version management, forge downloads,... 5 | task :librarian_spec_prep do 6 | sh "librarian-puppet install --path=$PWD/spec/fixtures/modules/" 7 | end 8 | task :spec_prep => :librarian_spec_prep 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jfryman/puppet-nginx", 3 | "type": "project", 4 | "description": "Puppet module for nginx installation", 5 | "keywords": ["puppet", "nginx"], 6 | "license": "Apache-2.0", 7 | "require": { 8 | }, 9 | "extra": { 10 | "branch-alias": { 11 | "dev-master": "1.x-dev" 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | apt: "https://github.com/puppetlabs/puppetlabs-apt.git" 4 | stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git" 5 | firewall: "https://github.com/puppetlabs/puppetlabs-firewall.git" 6 | concat: "https://github.com/puppetlabs/puppetlabs-concat.git" 7 | symlinks: 8 | postgresql: "#{source_dir}" 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1404-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-14.04-amd64 6 | box : puppetlabs/ubuntu-14.04-64-nocm 7 | box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1404-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-14.04-amd64 6 | box : puppetlabs/ubuntu-14.04-64-nocm 7 | box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | 3 | fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures')) 4 | 5 | RSpec.configure do |c| 6 | c.module_path = File.join(fixture_path, 'modules') 7 | c.manifest_dir = File.join(fixture_path, 'manifests') 8 | end 9 | 10 | at_exit { RSpec::Puppet::Coverage.report! } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/centos-59-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | - database 6 | - console 7 | platform: el-5-x86_64 8 | box : centos-59-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/centos-59-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-59-x64: 3 | roles: 4 | - master 5 | - database 6 | - console 7 | platform: el-5-x86_64 8 | box : centos-59-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-59-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/java/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mailcatcher/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7'] 3 | 4 | gem 'puppet', puppetversion 5 | 6 | group :test do 7 | gem 'rake', '>= 0.9.0' 8 | gem 'rspec', '>= 2.8.0' 9 | gem 'rspec-puppet', '>= 0.1.1' 10 | gem 'puppetlabs_spec_helper', '>= 0.4.1' 11 | gem 'puppet-lint' 12 | end 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'puppetlabs_spec_helper/module_spec_helper' 2 | require 'puppet_facts' 3 | include PuppetFacts 4 | RSpec.configure do |c| 5 | c.formatter = :documentation 6 | end 7 | 8 | # The default set of platforms to test again. 9 | ENV['UNIT_TEST_PLATFORMS'] = 'centos-6-x86_64 ubuntu-1404-x86_64' 10 | PLATFORMS = ENV['UNIT_TEST_PLATFORMS'].split(' ') 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/acceptance/nodesets/centos-65-x64-docker.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-65-x64: 3 | roles: 4 | - master 5 | platform: el-6-x86_64 6 | image: devopsil/puppet:3.5.1 7 | # ip: localhost 8 | hypervisor : docker 9 | docker_image_commands: 10 | - yum -y install tar 11 | - useradd vagrant 12 | CONFIG: 13 | log_level: debug 14 | type: git 15 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/default_confd_files.pp: -------------------------------------------------------------------------------- 1 | class apache::default_confd_files ( 2 | $all = true, 3 | ) { 4 | # The rest of the conf.d/* files only get loaded if we want them 5 | if $all { 6 | case $::osfamily { 7 | 'freebsd': { 8 | include ::apache::confd::no_accf 9 | } 10 | default: { 11 | # do nothing 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/mod/shib.pp: -------------------------------------------------------------------------------- 1 | class apache::mod::shib ( 2 | $suppress_warning = false, 3 | ) { 4 | 5 | if $::osfamily == 'RedHat' and ! $suppress_warning { 6 | warning('RedHat distributions do not have Apache mod_shib in their default package repositories.') 7 | } 8 | 9 | $mod_shib = 'shib2' 10 | 11 | apache::mod {$mod_shib: 12 | id => 'mod_shib', 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-server-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: git 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/firewall/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/centos-64-x64-pe.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | centos-64-x64: 3 | roles: 4 | - master 5 | - database 6 | - dashboard 7 | platform: el-6-x86_64 8 | box : centos-64-x64-vbox4210-nocm 9 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box 10 | hypervisor : vagrant 11 | CONFIG: 12 | type: pe 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/lib/facter/puppi_projects.rb: -------------------------------------------------------------------------------- 1 | require 'facter' 2 | Facter.add("puppi_projects") do 3 | confine :kernel => [ 'Linux' , 'SunOS' , 'FreeBSD' , 'Darwin' ] 4 | setcode do 5 | Facter::Util::Resolution.exec('ls `grep projectsdir /etc/puppi/puppi.conf | sed \'s/projectsdir="\([^"]*\)"/\1/\'` | tr \'\n\' \',\' | sed \'s/,$//\'') if File.exists?("/etc/puppi/puppi.conf") 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/pyenv/Rakefile: -------------------------------------------------------------------------------- 1 | require 'puppet-lint/tasks/puppet-lint' 2 | 3 | # Be extremely pedantic 4 | PuppetLint.configuration.fail_on_warnings = true 5 | 6 | # Disable some idiotic checks 7 | PuppetLint.configuration.send('disable_class_inherits_from_params_class') 8 | PuppetLint.configuration.send('disable_class_parameter_defaults') 9 | PuppetLint.configuration.send('disable_documentation') 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | "stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git" 4 | "apt": "git://github.com/puppetlabs/puppetlabs-apt.git" 5 | "staging": "git://github.com/nanliu/puppet-staging.git" 6 | erlang: 7 | repo: "https://github.com/garethr/garethr-erlang.git" 8 | symlinks: 9 | "rabbitmq": "#{source_dir}" 10 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/redis/tests/init.pp: -------------------------------------------------------------------------------- 1 | node default { 2 | 3 | package { 'epel-release': 4 | ensure => present, 5 | source => 'http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm', 6 | provider => rpm, 7 | } 8 | 9 | class { 'redis': 10 | conf_port => '6379', 11 | conf_bind => '0.0.0.0', 12 | system_sysctl => true, 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/stdlib/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | type: foss 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/spec/acceptance/unsupported_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper_acceptance' 2 | 3 | describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do 4 | it 'class apt fails' do 5 | pp = <<-EOS 6 | class { 'apt': } 7 | EOS 8 | expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/unsupported/i) 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/staging/tests/file.pp: -------------------------------------------------------------------------------- 1 | $caller_module_name = 'demo' 2 | 3 | class { 'staging': 4 | path => '/tmp/staging', 5 | } 6 | 7 | staging::file { 'sample': 8 | source => 'puppet:///modules/staging/sample', 9 | } 10 | 11 | staging::file { 'passwd': 12 | source => '/etc/passwd', 13 | } 14 | 15 | staging::file { 'manpage.html': 16 | source => 'http://curl.haxx.se/docs/manpage.html', 17 | } 18 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/confd/no_accf.pp: -------------------------------------------------------------------------------- 1 | class apache::confd::no_accf { 2 | # Template uses no variables 3 | file { 'no-accf.conf': 4 | ensure => 'file', 5 | path => "${::apache::confd_dir}/no-accf.conf", 6 | content => template('apache/confd/no-accf.conf.erb'), 7 | require => Exec["mkdir ${::apache::confd_dir}"], 8 | before => File[$::apache::confd_dir], 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/php.pp: -------------------------------------------------------------------------------- 1 | # Class: apache::php 2 | # 3 | # This class installs PHP for Apache 4 | # 5 | # Parameters: 6 | # - $php_package 7 | # 8 | # Actions: 9 | # - Install Apache PHP package 10 | # 11 | # Requires: 12 | # 13 | # Sample Usage: 14 | # 15 | class apache::php { 16 | warning('apache::php is deprecated; please use apache::mod::php') 17 | include ::apache::mod::php 18 | } 19 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/ntp/spec/acceptance/unsupported_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper_acceptance' 2 | 3 | describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do 4 | it 'should fail' do 5 | pp = <<-EOS 6 | class { 'ntp': } 7 | EOS 8 | expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/is not supported on an/i) 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/manifests/helpers.pp: -------------------------------------------------------------------------------- 1 | # Class puppi::helpers 2 | # 3 | # A class that defines all the default helpers used by Example42 4 | # modules 5 | # 6 | # == Usage 7 | # Automatically included by Puppi 8 | # 9 | class puppi::helpers { 10 | 11 | # Standard helper for Example42 modules 12 | puppi::helper { 'standard': 13 | template => 'puppi/helpers/standard.yml.erb', 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/acceptance/nodesets/ubuntu-server-1310-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1310-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-13.10-amd64 6 | box : ubuntu-server-1310-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-1310-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/spec/acceptance/nodesets/default.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box: ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor: vagrant 9 | CONFIG: 10 | log_level: verbose 11 | type: foss 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/spec/acceptance/nodesets/ubuntu-server-1310-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1310-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-13.10-amd64 6 | box : ubuntu-server-1310-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-1310-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_error_document.erb: -------------------------------------------------------------------------------- 1 | <% if @error_documents and ! @error_documents.empty? -%> 2 | <%- [@error_documents].flatten.compact.each do |error_document| -%> 3 | <%- if error_document["error_code"] != '' and error_document["document"] != '' -%> 4 | ErrorDocument <%= error_document["error_code"] %> <%= error_document["document"] %> 5 | <%- end -%> 6 | <%- end -%> 7 | <% end -%> 8 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_setenv.erb: -------------------------------------------------------------------------------- 1 | <% if @setenv and ! @setenv.empty? -%> 2 | 3 | ## SetEnv/SetEnvIf for environment variables 4 | <%- Array(@setenv).each do |envvar| -%> 5 | SetEnv <%= envvar %> 6 | <%- end -%> 7 | <% end -%> 8 | <% if @setenvif and ! @setenvif.empty? -%> 9 | <%- Array(@setenvif).each do |envifvar| -%> 10 | SetEnvIf <%= envifvar %> 11 | <%- end -%> 12 | <% end -%> 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/manifests/bindings/perl.pp: -------------------------------------------------------------------------------- 1 | # Private class 2 | class mysql::bindings::perl { 3 | 4 | package{ 'perl_mysql': 5 | ensure => $mysql::bindings::perl_package_ensure, 6 | install_options => $mysql::bindings::install_options, 7 | name => $mysql::bindings::perl_package_name, 8 | provider => $mysql::bindings::perl_package_provider, 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/manifests/bindings/ruby.pp: -------------------------------------------------------------------------------- 1 | # Private class 2 | class mysql::bindings::ruby { 3 | 4 | package{ 'ruby_mysql': 5 | ensure => $mysql::bindings::ruby_package_ensure, 6 | install_options => $mysql::bindings::install_options, 7 | name => $mysql::bindings::ruby_package_name, 8 | provider => $mysql::bindings::ruby_package_provider, 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/spec/unit/functions/postgresql_escape_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'postgresql_escape', :type => :puppet_function do 4 | it { is_expected.to run.with_params('foo'). 5 | and_return('$$foo$$') } 6 | end 7 | describe 'postgresql_escape', :type => :puppet_function do 8 | it { is_expected.to run.with_params('fo$$o'). 9 | and_return('$ed$fo$$o$ed$') } 10 | end 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/spec/acceptance/nodesets/ubuntu-server-1310-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-1310-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-13.10-amd64 6 | box : ubuntu-server-1310-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-1310-x64-virtualbox-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level : debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/Puppetfile.lock: -------------------------------------------------------------------------------- 1 | FORGE 2 | remote: http://forge.puppetlabs.com 3 | specs: 4 | puppetlabs/apache (1.1.0) 5 | puppetlabs/concat (>= 1.0.0) 6 | puppetlabs/stdlib (>= 2.4.0) 7 | puppetlabs/concat (1.1.0) 8 | puppetlabs/stdlib (>= 4.0.0) 9 | puppetlabs/stdlib (4.3.2) 10 | 11 | DEPENDENCIES 12 | puppetlabs/apache (>= 1.1.0) 13 | puppetlabs/stdlib (>= 3.2.0) 14 | 15 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/manifests/conf.pp: -------------------------------------------------------------------------------- 1 | define apt::conf ( 2 | $content, 3 | $ensure = present, 4 | $priority = '50' 5 | ) { 6 | 7 | include apt::params 8 | 9 | $apt_conf_d = $apt::params::apt_conf_d 10 | 11 | file { "${apt_conf_d}/${priority}${name}": 12 | ensure => $ensure, 13 | content => $content, 14 | owner => root, 15 | group => root, 16 | mode => '0644', 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/spec/acceptance/nodesets/ubuntu-server-10044-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-10044-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-10.04-amd64 6 | box : ubuntu-server-10044-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box : ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url : http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor : vagrant 9 | CONFIG: 10 | log_level: debug 11 | type: git 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/manifests/bindings/java.pp: -------------------------------------------------------------------------------- 1 | # Private class 2 | class mysql::bindings::java { 3 | 4 | package { 'mysql-connector-java': 5 | ensure => $mysql::bindings::java_package_ensure, 6 | install_options => $mysql::bindings::install_options, 7 | name => $mysql::bindings::java_package_name, 8 | provider => $mysql::bindings::java_package_provider, 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/manifests/bindings/php.pp: -------------------------------------------------------------------------------- 1 | # Private class: See README.md 2 | class mysql::bindings::php { 3 | 4 | package { 'php-mysql': 5 | ensure => $mysql::bindings::php_package_ensure, 6 | install_options => $mysql::bindings::install_options, 7 | name => $mysql::bindings::php_package_name, 8 | provider => $mysql::bindings::php_package_provider, 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/manifests/server/providers.pp: -------------------------------------------------------------------------------- 1 | # Convenience class to call each of the three providers with the corresponding 2 | # hashes provided in mysql::server. 3 | # See README.md for details. 4 | class mysql::server::providers { 5 | create_resources('mysql_user', $mysql::server::users) 6 | create_resources('mysql_grant', $mysql::server::grants) 7 | create_resources('mysql_database', $mysql::server::databases) 8 | } 9 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/swap_file/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml: -------------------------------------------------------------------------------- 1 | HOSTS: 2 | ubuntu-server-12042-x64: 3 | roles: 4 | - master 5 | platform: ubuntu-12.04-amd64 6 | box: ubuntu-server-12042-x64-vbox4210-nocm 7 | box_url: http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box 8 | hypervisor: vagrant 9 | CONFIG: 10 | log_level: verbose 11 | type: foss 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/python.pp: -------------------------------------------------------------------------------- 1 | # Class: apache::python 2 | # 3 | # This class installs Python for Apache 4 | # 5 | # Parameters: 6 | # - $php_package 7 | # 8 | # Actions: 9 | # - Install Apache Python package 10 | # 11 | # Requires: 12 | # 13 | # Sample Usage: 14 | # 15 | class apache::python { 16 | warning('apache::python is deprecated; please use apache::mod::python') 17 | include ::apache::mod::python 18 | } 19 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/tests/mods_custom.pp: -------------------------------------------------------------------------------- 1 | ## custom mods 2 | 3 | # Base class. Declares default vhost on port 80 and default ssl 4 | # vhost on port 443 listening on all interfaces and serving 5 | # $apache::docroot, and declaring a custom set of modules. 6 | class { 'apache': 7 | default_mods => [ 8 | 'info', 9 | 'alias', 10 | 'mime', 11 | 'env', 12 | 'setenv', 13 | 'expires', 14 | ], 15 | } 16 | 17 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mysql/manifests/bindings/python.pp: -------------------------------------------------------------------------------- 1 | # Private class 2 | class mysql::bindings::python { 3 | 4 | package { 'python-mysqldb': 5 | ensure => $mysql::bindings::python_package_ensure, 6 | install_options => $mysql::bindings::install_options, 7 | name => $mysql::bindings::python_package_name, 8 | provider => $mysql::bindings::python_package_provider, 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/postgresql/manifests/lib/perl.pp: -------------------------------------------------------------------------------- 1 | # This class installs the perl libs for postgresql. See README.md for more 2 | # details. 3 | class postgresql::lib::perl( 4 | $package_name = $postgresql::params::perl_package_name, 5 | $package_ensure = 'present' 6 | ) inherits postgresql::params { 7 | 8 | package { 'perl-DBD-Pg': 9 | ensure => $package_ensure, 10 | name => $package_name, 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puphpet/manifests/apache/mod.pp: -------------------------------------------------------------------------------- 1 | # This depends on puppetlabs/apache: https://github.com/puppetlabs/puppetlabs-apache 2 | # Installs Apache mod, filtering out from list of disallowed 3 | define puphpet::apache::mod ( 4 | $disallowed_modules = [], 5 | ) { 6 | if ! defined(Class["apache::mod::${name}"]) 7 | and !($name in $disallowed_modules) 8 | { 9 | class { "apache::mod::${name}": } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/templates/info.erb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # <%= @description %> 3 | # Script generated by Puppet. It's executed when you run: 4 | # puppi info <%= @name %> 5 | # 6 | # Sources common header for Puppi scripts 7 | . <%= scope.lookupvar('puppi::params::scriptsdir') %>/header || exit 10 8 | 9 | echo_title "$HOSTNAME - <%= @description %>" 10 | <% @array_run.each do |cmd| %>show_command "<%= cmd %>" 11 | <% end %> 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rvm/manifests/dependencies.pp: -------------------------------------------------------------------------------- 1 | # Install packages needed by RVM when not using autolibs 2 | class rvm::dependencies { 3 | case $::operatingsystem { 4 | 'Ubuntu','Debian': { require rvm::dependencies::ubuntu } 5 | 'CentOS','RedHat','Fedora','rhel','Amazon','Scientific': { require rvm::dependencies::centos } 6 | 'OracleLinux': { require rvm::dependencies::oraclelinux } 7 | default: {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /puphpet/puppet/nodes/ruby.pp: -------------------------------------------------------------------------------- 1 | if $ruby_values == undef { $ruby_values = hiera_hash('ruby', false) } 2 | 3 | include puphpet::params 4 | 5 | User <| title == $::ssh_username |> { 6 | groups +> 'rvm' 7 | } 8 | 9 | if array_true($ruby_values, 'versions') 10 | and count($ruby_values['versions']) > 0 11 | { 12 | puphpet::ruby::dotfile { 'do': } 13 | 14 | create_resources(puphpet::ruby::install, $ruby_values['versions']) 15 | } 16 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/mod/alias.conf.erb: -------------------------------------------------------------------------------- 1 | 2 | Alias /icons/ "<%= @icons_path %>/" 3 | "> 4 | Options <%= @icons_options %> 5 | AllowOverride None 6 | <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%> 7 | Require all granted 8 | <%- else -%> 9 | Order allow,deny 10 | Allow from all 11 | <%- end -%> 12 | 13 | 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/composer/spec/classes/composer_params_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'composer::params' do 4 | ['RedHat', 'Debian', 'Linux'].each do |osfamily| 5 | context "on #{osfamily} operating system family" do 6 | let(:facts) { { 7 | :osfamily => osfamily, 8 | :operatingsystem => 'Amazon', 9 | } } 10 | 11 | it { should compile } 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/concat/tests/fragment.pp: -------------------------------------------------------------------------------- 1 | concat { 'testconcat': 2 | ensure => present, 3 | path => '/tmp/concat', 4 | owner => 'root', 5 | group => 'root', 6 | mode => '0664', 7 | } 8 | 9 | concat::fragment { '1': 10 | target => 'testconcat', 11 | content => '1', 12 | order => '01', 13 | } 14 | 15 | concat::fragment { '2': 16 | target => 'testconcat', 17 | content => '2', 18 | order => '02', 19 | } 20 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/rabbitmq/manifests/repo/rhel.pp: -------------------------------------------------------------------------------- 1 | class rabbitmq::repo::rhel { 2 | 3 | $package_gpg_key = $rabbitmq::package_gpg_key 4 | 5 | Class['rabbitmq::repo::rhel'] -> Package<| title == 'rabbitmq-server' |> 6 | 7 | exec { "rpm --import ${package_gpg_key}": 8 | path => ['/bin','/usr/bin','/sbin','/usr/sbin'], 9 | onlyif => 'test `rpm -qa | grep gpg-pubkey-056e8e56-468e43f2 | wc -l` -eq 0', 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/supervisord/spec/functions/array2csv_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'array2csv' do 4 | it { should run.with_params(['value1']).and_return('value1') } 5 | it { should run.with_params(['value1', 'value2', 'value3']).and_return('value1,value2,value3') } 6 | it { should run.with_params('foo').and_raise_error(Puppet::ParseError) } 7 | it { should run.with_params().and_raise_error(Puppet::ParseError) } 8 | end -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/manifests/dev.pp: -------------------------------------------------------------------------------- 1 | class apache::dev { 2 | if $::osfamily == 'FreeBSD' and !defined(Class['apache::package']) { 3 | fail('apache::dev requires apache::package; please include apache or apache::package class first') 4 | } 5 | include ::apache::params 6 | $packages = $::apache::params::dev_packages 7 | package { $packages: 8 | ensure => present, 9 | require => Package['httpd'], 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apache/templates/vhost/_requestheader.erb: -------------------------------------------------------------------------------- 1 | <% if @request_headers and ! @request_headers.empty? -%> 2 | 3 | ## Request header rules 4 | ## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader 5 | <%- Array(@request_headers).each do |request_statement| -%> 6 | <%- if request_statement != '' -%> 7 | RequestHeader <%= request_statement %> 8 | <%- end -%> 9 | <%- end -%> 10 | <% end -%> 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/nginx/.travis/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | group :rake do 4 | gem 'puppetlabs_spec_helper' 5 | gem 'librarian-puppet', '<1.1.0' 6 | gem 'open3_backport', :platforms => :ruby_18 7 | gem 'json', :platforms => :ruby_18 8 | end 9 | 10 | if puppetversion = ENV['PUPPET_GEM_VERSION'] 11 | gem 'puppet', puppetversion, :require => false 12 | else 13 | gem 'puppet', :require => false 14 | end 15 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/php/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | "puppi": "git://github.com/example42/puppi.git" 4 | "monitor": "git://github.com/example42/puppet-monitor.git" 5 | "firewall": "git://github.com/example42/puppet-firewall.git" 6 | "iptables": "git://github.com/example42/puppet-iptables.git" 7 | "concat": "git://github.com/example42/puppet-concat.git" 8 | symlinks: 9 | "php": "#{source_dir}" 10 | 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/puppi/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example42/puppi", 3 | "description": "Puppet driven applications deployment tool", 4 | "homepage": "https://github.com/example42/puppi", 5 | "type": "library", 6 | "license": "Apache License, Version 2.0", 7 | "authors": [ 8 | { 9 | "name": "Example42", 10 | "homepage": "http://www.example42.com/" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/yum/.fixtures.yml: -------------------------------------------------------------------------------- 1 | fixtures: 2 | repositories: 3 | "puppi": "git://github.com/example42/puppi.git" 4 | "monitor": "git://github.com/example42/puppet-monitor.git" 5 | "firewall": "git://github.com/example42/puppet-firewall.git" 6 | "iptables": "git://github.com/example42/puppet-iptables.git" 7 | "concat": "git://github.com/example42/puppet-concat.git" 8 | symlinks: 9 | "yum": "#{source_dir}" 10 | 11 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/apt/tests/force.pp: -------------------------------------------------------------------------------- 1 | # force.pp 2 | 3 | # force a package from a specific release 4 | apt::force { 'package1': 5 | release => 'backports', 6 | } 7 | 8 | # force a package to be a specific version 9 | apt::force { 'package2': 10 | version => '1.0.0-1', 11 | } 12 | 13 | # force a package from a specific release to be a specific version 14 | apt::force { 'package3': 15 | release => 'sid', 16 | version => '2.0.0-1', 17 | } 18 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/elasticsearch/spec/classes/003_elasticsearch_init_unknown_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'elasticsearch', :type => 'class' do 4 | 5 | context "on an unknown OS" do 6 | 7 | context "it should fail" do 8 | let :facts do { 9 | :operatingsystem => 'Windows' 10 | } end 11 | 12 | it { expect { should raise_error(Puppet::Error) } } 13 | 14 | end 15 | 16 | end 17 | 18 | end 19 | -------------------------------------------------------------------------------- /puphpet/puppet/modules/mongodb/tests/replicaset.pp: -------------------------------------------------------------------------------- 1 | node default { 2 | class { '::mongodb::globals': 3 | manage_package_repo => true 4 | } -> 5 | class { '::mongodb::server': 6 | smallfiles => true, 7 | bind_ip => ['0.0.0.0'], 8 | replset => 'rsmain' 9 | } 10 | } 11 | 12 | node /mongo1/ inherits default { 13 | mongodb_replset{'rsmain': 14 | members => ['mongo1:27017', 'mongo2:27017', 'mongo3:27017'] 15 | } 16 | } 17 | --------------------------------------------------------------------------------