├── .gitignore ├── .kitchen.yml ├── .rubocop.yml ├── .travis.yml ├── Berksfile ├── CHANGELOG.md ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── Rakefile ├── attributes ├── default.rb ├── ppa.rb └── source.rb ├── chefignore ├── files └── default │ ├── haproxy.conf │ └── haproxy.default.cfg ├── libraries ├── chef_haproxy_backend.rb ├── chef_haproxy_defaults.rb ├── chef_haproxy_frontend.rb ├── chef_haproxy_instance.rb ├── chef_haproxy_listen.rb ├── chef_haproxy_peers.rb ├── chef_haproxy_proxy.rb ├── chef_haproxy_userlist.rb ├── haproxy.rb ├── haproxy_helpers.rb ├── haproxy_instance.rb ├── haproxy_proxy.rb ├── haproxy_proxy_all.rb ├── haproxy_proxy_backend.rb ├── haproxy_proxy_defaults_backend.rb ├── haproxy_proxy_defaults_frontend.rb ├── haproxy_proxy_frontend.rb ├── haproxy_proxy_non_defaults.rb └── matchers.rb ├── metadata.rb ├── recipes ├── default.rb ├── install.rb └── service.rb ├── spec ├── spec_helper.rb └── unit │ ├── all_spec.rb │ ├── backend_spec.rb │ ├── defaults_backend_spec.rb │ ├── defaults_frontend_spec.rb │ ├── frontend_spec.rb │ ├── helpers_spec.rb │ ├── instance_spec.rb │ ├── non_defaults_spec.rb │ ├── proxy_spec.rb │ └── recipes │ ├── default_spec.rb │ ├── install_spec.rb │ ├── service_spec.rb │ └── test_spec.rb ├── templates └── default │ └── haproxy.cfg.erb └── test ├── fixtures └── cookbooks │ ├── my-consul-lb │ ├── attributes │ │ └── default.rb │ ├── metadata.rb │ └── recipes │ │ ├── consul.rb │ │ ├── consul_template.rb │ │ ├── default.rb │ │ └── haproxy.rb │ └── my-lb │ ├── attributes │ └── default.rb │ ├── metadata.rb │ └── recipes │ └── default.rb └── integration ├── consul └── serverspec │ ├── default_spec.rb │ └── spec_helper.rb ├── nodes ├── app01.json ├── app02.json ├── lb01.json ├── lb02.json ├── mysql01.json └── mysql02.json ├── package └── serverspec │ ├── default_spec.rb │ └── spec_helper.rb ├── ppa └── serverspec │ ├── default_spec.rb │ └── spec_helper.rb └── source └── serverspec ├── default_spec.rb └── spec_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/.gitignore -------------------------------------------------------------------------------- /.kitchen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/.kitchen.yml -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/.travis.yml -------------------------------------------------------------------------------- /Berksfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/Berksfile -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/Rakefile -------------------------------------------------------------------------------- /attributes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/attributes/default.rb -------------------------------------------------------------------------------- /attributes/ppa.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/attributes/ppa.rb -------------------------------------------------------------------------------- /attributes/source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/attributes/source.rb -------------------------------------------------------------------------------- /chefignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/chefignore -------------------------------------------------------------------------------- /files/default/haproxy.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/files/default/haproxy.conf -------------------------------------------------------------------------------- /files/default/haproxy.default.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/files/default/haproxy.default.cfg -------------------------------------------------------------------------------- /libraries/chef_haproxy_backend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/chef_haproxy_backend.rb -------------------------------------------------------------------------------- /libraries/chef_haproxy_defaults.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/chef_haproxy_defaults.rb -------------------------------------------------------------------------------- /libraries/chef_haproxy_frontend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/chef_haproxy_frontend.rb -------------------------------------------------------------------------------- /libraries/chef_haproxy_instance.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/chef_haproxy_instance.rb -------------------------------------------------------------------------------- /libraries/chef_haproxy_listen.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/chef_haproxy_listen.rb -------------------------------------------------------------------------------- /libraries/chef_haproxy_peers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/chef_haproxy_peers.rb -------------------------------------------------------------------------------- /libraries/chef_haproxy_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/chef_haproxy_proxy.rb -------------------------------------------------------------------------------- /libraries/chef_haproxy_userlist.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/chef_haproxy_userlist.rb -------------------------------------------------------------------------------- /libraries/haproxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy.rb -------------------------------------------------------------------------------- /libraries/haproxy_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_helpers.rb -------------------------------------------------------------------------------- /libraries/haproxy_instance.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_instance.rb -------------------------------------------------------------------------------- /libraries/haproxy_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_proxy.rb -------------------------------------------------------------------------------- /libraries/haproxy_proxy_all.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_proxy_all.rb -------------------------------------------------------------------------------- /libraries/haproxy_proxy_backend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_proxy_backend.rb -------------------------------------------------------------------------------- /libraries/haproxy_proxy_defaults_backend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_proxy_defaults_backend.rb -------------------------------------------------------------------------------- /libraries/haproxy_proxy_defaults_frontend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_proxy_defaults_frontend.rb -------------------------------------------------------------------------------- /libraries/haproxy_proxy_frontend.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_proxy_frontend.rb -------------------------------------------------------------------------------- /libraries/haproxy_proxy_non_defaults.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/haproxy_proxy_non_defaults.rb -------------------------------------------------------------------------------- /libraries/matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/libraries/matchers.rb -------------------------------------------------------------------------------- /metadata.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/metadata.rb -------------------------------------------------------------------------------- /recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/recipes/default.rb -------------------------------------------------------------------------------- /recipes/install.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/recipes/install.rb -------------------------------------------------------------------------------- /recipes/service.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/recipes/service.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/unit/all_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/all_spec.rb -------------------------------------------------------------------------------- /spec/unit/backend_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/backend_spec.rb -------------------------------------------------------------------------------- /spec/unit/defaults_backend_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/defaults_backend_spec.rb -------------------------------------------------------------------------------- /spec/unit/defaults_frontend_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/defaults_frontend_spec.rb -------------------------------------------------------------------------------- /spec/unit/frontend_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/frontend_spec.rb -------------------------------------------------------------------------------- /spec/unit/helpers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/helpers_spec.rb -------------------------------------------------------------------------------- /spec/unit/instance_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/instance_spec.rb -------------------------------------------------------------------------------- /spec/unit/non_defaults_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/non_defaults_spec.rb -------------------------------------------------------------------------------- /spec/unit/proxy_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/proxy_spec.rb -------------------------------------------------------------------------------- /spec/unit/recipes/default_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/recipes/default_spec.rb -------------------------------------------------------------------------------- /spec/unit/recipes/install_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/recipes/install_spec.rb -------------------------------------------------------------------------------- /spec/unit/recipes/service_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/recipes/service_spec.rb -------------------------------------------------------------------------------- /spec/unit/recipes/test_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/spec/unit/recipes/test_spec.rb -------------------------------------------------------------------------------- /templates/default/haproxy.cfg.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/templates/default/haproxy.cfg.erb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-consul-lb/attributes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/fixtures/cookbooks/my-consul-lb/attributes/default.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-consul-lb/metadata.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/fixtures/cookbooks/my-consul-lb/metadata.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-consul-lb/recipes/consul.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/fixtures/cookbooks/my-consul-lb/recipes/consul.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-consul-lb/recipes/consul_template.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/fixtures/cookbooks/my-consul-lb/recipes/consul_template.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-consul-lb/recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/fixtures/cookbooks/my-consul-lb/recipes/default.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-consul-lb/recipes/haproxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/fixtures/cookbooks/my-consul-lb/recipes/haproxy.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-lb/attributes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/fixtures/cookbooks/my-lb/attributes/default.rb -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-lb/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'my-lb' 2 | 3 | depends 'haproxy-ng' 4 | -------------------------------------------------------------------------------- /test/fixtures/cookbooks/my-lb/recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/fixtures/cookbooks/my-lb/recipes/default.rb -------------------------------------------------------------------------------- /test/integration/consul/serverspec/default_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/consul/serverspec/default_spec.rb -------------------------------------------------------------------------------- /test/integration/consul/serverspec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'serverspec' 2 | 3 | set :backend, :exec 4 | -------------------------------------------------------------------------------- /test/integration/nodes/app01.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/nodes/app01.json -------------------------------------------------------------------------------- /test/integration/nodes/app02.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/nodes/app02.json -------------------------------------------------------------------------------- /test/integration/nodes/lb01.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/nodes/lb01.json -------------------------------------------------------------------------------- /test/integration/nodes/lb02.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/nodes/lb02.json -------------------------------------------------------------------------------- /test/integration/nodes/mysql01.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/nodes/mysql01.json -------------------------------------------------------------------------------- /test/integration/nodes/mysql02.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/nodes/mysql02.json -------------------------------------------------------------------------------- /test/integration/package/serverspec/default_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/package/serverspec/default_spec.rb -------------------------------------------------------------------------------- /test/integration/package/serverspec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'serverspec' 2 | 3 | set :backend, :exec 4 | -------------------------------------------------------------------------------- /test/integration/ppa/serverspec/default_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/ppa/serverspec/default_spec.rb -------------------------------------------------------------------------------- /test/integration/ppa/serverspec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'serverspec' 2 | 3 | set :backend, :exec 4 | -------------------------------------------------------------------------------- /test/integration/source/serverspec/default_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nathwill/chef-haproxy-ng/HEAD/test/integration/source/serverspec/default_spec.rb -------------------------------------------------------------------------------- /test/integration/source/serverspec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'serverspec' 2 | 3 | set :backend, :exec 4 | --------------------------------------------------------------------------------