Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,14 @@ before_install:
- gem update --system 2.1.11
- gem --version
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.0
script: 'bundle exec rake spec'
env:
- PUPPET_VERSION="~> 2.7.0"
- PUPPET_VERSION="~> 3.0.0"
- PUPPET_VERSION="~> 3.1.0"
- PUPPET_VERSION="~> 3.2.0"
- PUPPET_VERSION="~> 3.3.0"
- PUPPET_VERSION="~> 3.4.0"
- PUPPET_VERSION="~> 4.3.0"
matrix:
exclude:
# No support for Ruby 1.9 before Puppet 2.7
- rvm: 1.9.3
env: PUPPET_VERSION=2.6.0
# No support for Ruby 2.0 before Puppet 3.2
- rvm: 2.0.0
env: PUPPET_VERSION="~> 2.7.0"
Expand Down
17 changes: 9 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
source 'https://rubygems.org'

gem 'puppet', '>= 2.7.0'
gem 'puppet-lint', '>=0.3.2'
gem 'puppetlabs_spec_helper', '>=0.2.0'
gem 'rake', '>=0.9.2.2'
gem 'puppet', '4.5.3'
gem 'puppet-lint', '2.0.2'
gem 'puppetlabs_spec_helper', '~> 1.1.0'
gem 'rake', '11.1.1'
gem 'rake-hooks', '1.2.3'
gem 'librarian-puppet', '>=0.9.10'
gem 'rspec-system-puppet', :require => false
gem 'serverspec', :require => false
gem 'rspec-system-serverspec', :require => false
gem 'hiera-puppet-helper', :git => 'https://github.com/mmz-srf/hiera-puppet-helper.git'
gem 'puppet-blacksmith', :git => 'https://github.com/maestrodev/puppet-blacksmith.git'
gem 'rspec-puppet', :git => 'https://github.com/rodjek/rspec-puppet.git'

gem 'rspec', '~> 3.4.0' # MIT
gem 'rspec-core', '~> 3.4.4' # MIT
gem 'rspec-puppet', '2.6.10' # MIT
200 changes: 98 additions & 102 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,126 +1,122 @@
GIT
remote: https://github.com/maestrodev/puppet-blacksmith.git
revision: adeb613d78dc1e9971ad175ecd5d3b66465ba927
revision: d62d39dac4620cf4542a10cbba7328555726dc7d
specs:
puppet-blacksmith (2.0.2)
nokogiri
puppet (>= 2.7.16)
rest-client
puppet-blacksmith (4.1.2)
rest-client (~> 2.0)

GIT
remote: https://github.com/mmz-srf/hiera-puppet-helper.git
revision: 6f43f7a0cdba69161b70ee61f525a8579ac5069b
specs:
hiera-puppet-helper (2.0.1)

GIT
remote: https://github.com/rodjek/rspec-puppet.git
revision: 03e94422fb9bbdd950d5a0bec6ead5d76e06616b
specs:
rspec-puppet (1.0.1)
rspec

GEM
remote: https://rubygems.org/
specs:
builder (3.2.2)
diff-lcs (1.2.5)
excon (0.31.0)
facter (1.7.4)
fog (1.19.0)
builder
excon (~> 0.31.0)
formatador (~> 0.2.0)
mime-types
multi_json (~> 1.0)
net-scp (~> 1.1)
net-ssh (>= 2.1.3)
nokogiri (~> 1.5)
ruby-hmac
formatador (0.2.4)
hiera (1.3.1)
json_pure
highline (1.6.20)
json (1.8.1)
json_pure (1.8.1)
kwalify (0.7.2)
librarian-puppet (0.9.10)
json
CFPropertyList (2.2.8)
diff-lcs (1.3)
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
facter (2.5.1)
CFPropertyList (~> 2.2)
faraday (0.13.1)
multipart-post (>= 1.2, < 3)
faraday_middleware (0.12.2)
faraday (>= 0.7.4, < 1.0)
fast_gettext (1.1.2)
gettext (3.2.9)
locale (>= 2.0.5)
text (>= 1.3.0)
gettext-setup (0.30)
fast_gettext (~> 1.1.0)
gettext (>= 3.0.2)
locale
hiera (3.4.3)
http-cookie (1.0.3)
domain_name (~> 0.5)
json_pure (2.1.0)
librarian-puppet (3.0.0)
librarianp (>= 0.6.3)
puppet_forge (~> 2.1)
rsync
librarianp (0.6.4)
thor (~> 0.15)
metaclass (0.0.2)
mime-types (1.25.1)
mocha (1.0.0)
locale (2.1.2)
metaclass (0.0.4)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
minitar (0.6.1)
mocha (1.5.0)
metaclass (~> 0.0.1)
multi_json (1.8.4)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
nokogiri (1.5.11)
puppet (3.4.2)
facter (~> 1.6)
hiera (~> 1.0)
rgen (~> 0.6.5)
puppet-lint (0.3.2)
puppetlabs_spec_helper (0.4.1)
mocha (>= 0.10.5)
multipart-post (2.0.0)
netrc (0.11.0)
puppet (4.5.3)
CFPropertyList (~> 2.2.6)
facter (> 2.0, < 4)
hiera (>= 2.0, < 4)
json_pure
puppet-lint (2.0.2)
puppet-syntax (2.4.1)
rake
puppet_forge (2.2.9)
faraday (>= 0.9.0, < 0.14.0)
faraday_middleware (>= 0.9.0, < 0.13.0)
gettext-setup (~> 0.11)
minitar
semantic_puppet (~> 1.0)
puppetlabs_spec_helper (1.1.1)
mocha
puppet-lint
puppet-syntax
rake
rspec-puppet
rake (11.1.1)
rake-hooks (1.2.3)
rake
rspec (>= 2.9.0)
rspec-puppet (>= 0.1.1)
rake (10.1.1)
rbvmomi (1.8.1)
builder
nokogiri (>= 1.4.1)
trollop
rest-client (1.6.7)
mime-types (>= 1.16)
rgen (0.6.6)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.7)
rspec-expectations (2.14.4)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.4)
rspec-system (2.8.0)
fog (~> 1.18)
kwalify (~> 0.7.2)
mime-types (~> 1.16)
net-scp (~> 1.1)
net-ssh (~> 2.7)
nokogiri (~> 1.5.10)
rbvmomi (~> 1.6)
rspec (~> 2.14)
systemu (~> 2.5)
rspec-system-puppet (2.2.1)
rspec-system (~> 2.0)
rspec-system-serverspec (2.0.1)
rspec-system (~> 2.0)
serverspec (~> 0.0)
specinfra (~> 0.0)
ruby-hmac (0.4.0)
serverspec (0.14.4)
highline
net-ssh
rspec (>= 2.13.0)
specinfra (>= 0.1.0)
specinfra (0.4.1)
systemu (2.6.0)
thor (0.18.1)
trollop (2.0)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.4)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-puppet (2.6.10)
rspec
rspec-support (3.4.1)
rsync (1.0.9)
semantic_puppet (1.0.2)
text (1.3.1)
thor (0.20.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.5)

PLATFORMS
ruby

DEPENDENCIES
hiera-puppet-helper!
librarian-puppet (>= 0.9.10)
puppet (>= 2.7.0)
puppet (= 4.5.3)
puppet-blacksmith!
puppet-lint (>= 0.3.2)
puppetlabs_spec_helper (>= 0.2.0)
rake (>= 0.9.2.2)
rspec-puppet!
rspec-system-puppet
rspec-system-serverspec
serverspec
puppet-lint (= 2.0.2)
puppetlabs_spec_helper (~> 1.1.0)
rake (= 11.1.1)
rake-hooks (= 1.2.3)
rspec (~> 3.4.0)
rspec-core (~> 3.4.4)
rspec-puppet (= 2.6.10)

BUNDLED WITH
1.12.5
1 change: 1 addition & 0 deletions Modulefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ project_page 'https://github.com/deric/puppet-zookeeper'

## Add dependencies, if any:
dependency 'puppetlabs/stdlib', '>= 0.1.6'
dependency 'camptocamp/puppet-systemd'
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ require 'bundler'
Bundler.require(:rake)

require 'puppet-lint/tasks/puppet-lint'
require 'rspec-system/rake_task'
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet_blacksmith/rake_tasks'
require 'rake/dsl_definition'
require 'rake/hooks'

PuppetLint.configuration.ignore_paths = ["spec/fixtures/modules/cron/manifests/*.pp"]
PuppetLint.configuration.ignore_paths = ["spec/fixtures/modules/cron/manifests/*.pp", "vendor/**/*"]
PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
PuppetLint.configuration.send("disable_80chars")

Expand Down
17 changes: 17 additions & 0 deletions files/zookeeper.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=Zookeeper distributed coordination server
After=network.target
Wants=network.target

[Service]
User=zookeeper
Group=zookeeper
SyslogIdentifier=zookeeper
ExecStart=/bin/bash -c 'source /etc/default/zookeeper && exec /usr/share/zookeeper/bin/zkServer.sh start-foreground'
Restart=always
# This is due to zookeeper exiting with 143 when SIGTERM is sent by init.
SuccessExitStatus=143
LimitNOFILE=120000

[Install]
WantedBy=multi-user.target
Loading