Skip to content

Commit 65e972b

Browse files
authored
Merge pull request #54 from bstopp/feature/restart-apache
Restart apache when Dispatcher changes.
2 parents e84f99f + 1d94fd6 commit 65e972b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+554
-274
lines changed

Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ group :development, :tests do
44
gem 'rspec', '~> 3.4', :require => false
55
gem 'rake', :require => false
66
gem 'metadata-json-lint', :require => false
7-
# gem 'rspec-puppet', '2.3.0', :require => false
87
gem 'rspec-puppet', :require => false
98
gem 'webmock', :require => false
109
gem 'puppetlabs_spec_helper', :require => false

Gemfile.lock

+16-16
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,32 @@ GEM
3131
rsync (~> 1.0.9)
3232
stringify-hash (~> 0.0)
3333
unf (~> 0.1)
34-
beaker-answers (0.5.2)
34+
beaker-answers (0.6.0)
3535
hocon (~> 0.9.5)
3636
require_all (~> 1.3.2)
3737
stringify-hash (~> 0.0.0)
3838
beaker-hiera (0.1.1)
3939
stringify-hash (~> 0.0.0)
40-
beaker-pe (0.4.0)
40+
beaker-pe (0.5.0)
4141
stringify-hash (~> 0.0.0)
4242
beaker-puppet_install_helper (0.4.4)
4343
beaker (~> 2.0)
44-
beaker-rspec (5.4.0)
44+
beaker-rspec (5.6.0)
4545
beaker (~> 2.0)
4646
rspec
4747
serverspec (~> 2)
4848
specinfra (~> 2)
4949
builder (3.2.2)
50-
codeclimate-test-reporter (0.5.1)
50+
codeclimate-test-reporter (0.6.0)
5151
simplecov (>= 0.7.1, < 1.0.0)
5252
crack (0.4.3)
5353
safe_yaml (~> 1.0.0)
5454
diff-lcs (1.2.5)
5555
docile (1.1.5)
56-
docker-api (1.28.0)
56+
docker-api (1.29.0)
5757
excon (>= 0.38.0)
5858
json
59-
excon (0.49.0)
59+
excon (0.50.1)
6060
facter (2.4.6)
6161
CFPropertyList (~> 2.2.6)
6262
faraday (0.9.2)
@@ -90,8 +90,8 @@ GEM
9090
fog-atmos (0.1.0)
9191
fog-core
9292
fog-xml
93-
fog-aws (0.9.2)
94-
fog-core (~> 1.27)
93+
fog-aws (0.9.4)
94+
fog-core (~> 1.38)
9595
fog-json (~> 1.0)
9696
fog-xml (~> 0.1)
9797
ipaddress (~> 0.8)
@@ -141,7 +141,7 @@ GEM
141141
fog-serverlove (0.1.2)
142142
fog-core
143143
fog-json
144-
fog-softlayer (1.1.1)
144+
fog-softlayer (1.1.2)
145145
fog-core
146146
fog-json
147147
fog-storm_on_demand (0.1.1)
@@ -219,12 +219,12 @@ GEM
219219
ast (~> 2.2)
220220
pkg-config (1.1.7)
221221
powerpack (0.1.1)
222-
puppet (4.5.1)
222+
puppet (4.5.2)
223223
CFPropertyList (~> 2.2.6)
224224
facter (> 2.0, < 4)
225225
hiera (>= 2.0, < 4)
226226
json_pure
227-
puppet-lint (1.1.0)
227+
puppet-lint (2.0.0)
228228
puppet-syntax (2.1.0)
229229
rake
230230
puppetlabs_spec_helper (1.1.1)
@@ -262,8 +262,8 @@ GEM
262262
rspec
263263
rspec-support (3.4.1)
264264
rsync (1.0.9)
265-
rubocop (0.40.0)
266-
parser (>= 2.3.1.0, < 3.0)
265+
rubocop (0.41.1)
266+
parser (>= 2.3.1.1, < 3.0)
267267
powerpack (~> 0.1)
268268
rainbow (>= 1.99.1, < 3.0)
269269
ruby-progressbar (~> 1.7)
@@ -276,7 +276,7 @@ GEM
276276
rspec-its
277277
specinfra (~> 2.53)
278278
sfl (2.2)
279-
signet (0.7.2)
279+
signet (0.7.3)
280280
addressable (~> 2.3)
281281
faraday (~> 0.9)
282282
jwt (~> 1.5)
@@ -287,7 +287,7 @@ GEM
287287
simplecov-html (~> 0.10.0)
288288
simplecov-html (0.10.0)
289289
spdx-licenses (1.1.0)
290-
specinfra (2.59.0)
290+
specinfra (2.59.3)
291291
net-scp
292292
net-ssh (>= 2.7, < 4.0)
293293
net-telnet
@@ -299,7 +299,7 @@ GEM
299299
unf (0.1.4)
300300
unf_ext
301301
unf_ext (0.0.7.2)
302-
unicode-display_width (1.0.5)
302+
unicode-display_width (1.1.0)
303303
webmock (2.1.0)
304304
addressable (>= 2.3.6)
305305
crack (>= 0.3.2)

Rakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ require 'puppet-syntax/tasks/puppet-syntax'
33
require 'rubocop/rake_task'
44

55
exclude_paths = [
6-
'spec/fixtures/**/*'
6+
'spec/fixtures/**/*',
7+
'vendor/**/*'
78
]
89

910
task :default => [:spec, :lint, :rubocop]

docs/aem-instance/Service-Configuration.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ By default a Puppet service will be created and started for AEM. You can disable
1212
~~~ puppet
1313
aem::instance { 'aem' :
1414
source => '/path/to/aem-quickstart.jar',
15-
service => 'unmanaged'
15+
status => 'unmanaged'
1616
}
1717
~~~
1818

@@ -27,7 +27,7 @@ You can also ensure AEM Service is not running, and not enabled it on boot:
2727
~~~ puppet
2828
aem::instance { 'aem' :
2929
source => '/path/to/aem-quickstart.jar',
30-
service => 'disabled'
30+
status => 'disabled'
3131
}
3232
~~~
3333

@@ -42,7 +42,7 @@ AEM can be running, but not enabled on boot:
4242
~~~ puppet
4343
aem::instance { 'aem' :
4444
source => '/path/to/aem-quickstart.jar',
45-
service => 'running'
45+
status => 'running'
4646
}
4747
~~~
4848

docs/dispatcher/Propagate-Synd-Post.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This example creates a farm definition with custom Propagate Synd Post:
77

88
~~~ puppet
99
aem::dispatcher::farm { 'site' :
10-
docroot => '/var/www',
10+
docroot => '/var/www',
1111
propagate_synd_post => '1',
1212
}
1313
~~~

docs/dispatcher/Renders.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ aem::dispatcher::farm { 'site' :
8787
'ipv4' => 0,
8888
},
8989
{
90-
'hostname' => 'author.hostname.com',
91-
'port' => 9009,
90+
'hostname' => 'author.hostname.com',
91+
'port' => 9009,
9292
}
9393
]
9494
}

docs/dispatcher/Session-Management.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ This example creates a Farm definition with custom session management definition
77

88
~~~ puppet
99
aem::dispatcher::farm { 'site' :
10-
docroot => '/var/www',
11-
session_management => {
10+
docroot => '/var/www',
11+
session_management => {
1212
'directory' => '/path/to/cache',
1313
'encode' => 'md5',
1414
'header' => 'HTTP:authorization',

docs/dispatcher/Unavailability-Penalty.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
~~~ puppet
77
aem::dispatcher::farm { 'site' :
8-
docroot => '/var/www',
9-
statistics => [
8+
docroot => '/var/www',
9+
statistics => [
1010
{
1111
'glob' => '*.html',
1212
'category' => 'html'

docs/dispatcher/render-errors/Retry-Count.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
~~~ puppet
77
aem::dispatcher::farm { 'site' :
88
docroot => '/var/www',
9-
retries => "5",
9+
retries => '5',
1010
}
1111
~~~
1212

docs/license/User-Group.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ In the event you changed the default AEM user/group.
66
~~~ puppet
77
aem::instance { 'aem' :
88
source => '/path/to/aem-quickstart.jar',
9-
service => 'unmanaged',
109
user => 'vagrant',
1110
group => 'vagrant',
1211
}
@@ -16,8 +15,8 @@ aem::license { 'aem' :
1615
home => '/opt/aem',
1716
license_key => 'enter-your-key-here',
1817
version => '6.1.0',
19-
user => 'vagrant',
20-
group => 'vagrant',
18+
user => 'vagrant',
19+
group => 'vagrant',
2120
}
2221
2322
Aem::License['aem'] ~> Aem::Service['aem-aem']

docs/osgi-config/Console-Type.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $cfgs = {
3131
aem::osgi::config { 'org.apache.sling.security.impl.ReferrerFilter' :
3232
ensure => present,
3333
properties => $cfgs,
34-
handle_missing => 'remove\',
34+
handle_missing => 'remove',
3535
home => '/opt/aem/author',
3636
password => 'admin',
3737
type => 'console',

docs/replication/types/Reverse.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ This example creates a Reverse replication agent, the custom type.
88

99
~~~ puppet
1010
aem::agent::replication::reverse { 'Reverse Agent' :
11-
home => '/opt/aem',
12-
name => 'publish_reverse',
13-
password => 'admin',
14-
runmode => 'author',
15-
trans_password => 'admin',
16-
trans_uri => 'http://localhost:4503/bin/receive?authRequestLogin=1',
17-
trans_user => 'admin',
18-
username => 'admin',
11+
home => '/opt/aem',
12+
name => 'publish_reverse',
13+
password => 'admin',
14+
runmode => 'author',
15+
trans_password => 'admin',
16+
trans_uri => 'http://localhost:4503/bin/receive?authRequestLogin=1',
17+
trans_user => 'admin',
18+
username => 'admin',
1919
}
2020
~~~
2121

docs/replication/types/flush/Default.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ This example creates a Publish replication agent, using the minimal resource def
66

77
~~~ puppet
88
aem::agent::replication::flush { 'Flush Agent' :
9-
home => '/opt/aem',
10-
name => 'flush',
11-
password => 'admin',
12-
runmode => 'author',
13-
trans_password => 'admin',
14-
trans_uri => 'http://localhost:80/dispatcher/invalidate.cache',
15-
trans_user => 'admin',
16-
username => 'admin',
9+
home => '/opt/aem',
10+
name => 'flush',
11+
password => 'admin',
12+
runmode => 'author',
13+
trans_password => 'admin',
14+
trans_uri => 'http://localhost:80/dispatcher/invalidate.cache',
15+
trans_user => 'admin',
16+
username => 'admin',
1717
}
1818
~~~
1919

docs/replication/types/flush/Log-Level.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ This example manages the Log Level for the replication agent.
66

77
~~~ puppet
88
aem::agent::replication::flush { 'Flush Agent' :
9-
home => '/opt/aem',
10-
log_level => 'error',
11-
name => 'flush',
12-
password => 'admin',
13-
runmode => 'author',
14-
trans_password => 'admin',
15-
trans_uri => 'http://localhost:80/dispatcher/invalidate.cache',
16-
trans_user => 'admin',
17-
username => 'admin',
9+
home => '/opt/aem',
10+
log_level => 'error',
11+
name => 'flush',
12+
password => 'admin',
13+
runmode => 'author',
14+
trans_password => 'admin',
15+
trans_uri => 'http://localhost:80/dispatcher/invalidate.cache',
16+
trans_user => 'admin',
17+
username => 'admin',
1818
}
1919
~~~

docs/replication/types/flush/Transport-User.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ This example creates a Flush replication agent, with a custom transport user cre
66

77
~~~ puppet
88
aem::agent::replication::flush { 'Flush Agent' :
9-
home => '/opt/aem',
10-
name => 'flush',
11-
password => 'admin',
12-
runmode => 'author',
13-
trans_password => 'not-the-admin-password',
14-
trans_uri => 'http://localhost:80/dispatcher/invalidate.cache',
15-
trans_user => 'not-the-admin-user',
16-
username => 'admin',
9+
home => '/opt/aem',
10+
name => 'flush',
11+
password => 'admin',
12+
runmode => 'author',
13+
trans_password => 'not-the-admin-password',
14+
trans_uri => 'http://localhost:80/dispatcher/invalidate.cache',
15+
trans_user => 'not-the-admin-user',
16+
username => 'admin',
1717
}
1818
~~~

docs/replication/types/publish/Agent-User.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ This example configures the agent to use a specific user for aggregating content
66

77
~~~ puppet
88
aem::agent::replication::publish { 'Publish Agent' :
9-
agent_user => 'custom-user',
10-
home => '/opt/aem',
11-
name => 'publish',
12-
password => 'admin',
13-
runmode => 'author',
14-
trans_password => 'admin',
15-
trans_uri => 'http://localhost:4503/bin/receive?authRequestLogin=1',
16-
trans_user => 'admin',
17-
username => 'admin',
9+
agent_user => 'custom-user',
10+
home => '/opt/aem',
11+
name => 'publish',
12+
password => 'admin',
13+
runmode => 'author',
14+
trans_password => 'admin',
15+
trans_uri => 'http://localhost:4503/bin/receive?authRequestLogin=1',
16+
trans_user => 'admin',
17+
username => 'admin',
1818
}
1919
~~~
2020

docs/replication/types/publish/Default.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ This example creates a Publish replication agent, using the minimal resource def
66

77
~~~ puppet
88
aem::agent::replication::publish { 'Publish Agent' :
9-
home => '/opt/aem',
10-
name => 'publish',
11-
password => 'admin',
12-
runmode => 'author',
13-
trans_password => 'admin',
14-
trans_uri => 'http://localhost:4503/bin/receive?authRequestLogin=1',
15-
trans_user => 'admin',
16-
username => 'admin',
9+
home => '/opt/aem',
10+
name => 'publish',
11+
password => 'admin',
12+
runmode => 'author',
13+
trans_password => 'admin',
14+
trans_uri => 'http://localhost:4503/bin/receive?authRequestLogin=1',
15+
trans_user => 'admin',
16+
username => 'admin',
1717
}
1818
~~~
1919

docs/replication/types/publish/Log-Level.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ This example manages the Log Level for the replication agent.
66

77
~~~ puppet
88
aem::agent::replication::publish { 'Publish Agent' :
9-
home => '/opt/aem',
10-
log_level => 'error',
11-
name => 'publish',
12-
password => 'admin',
13-
runmode => 'author',
14-
trans_password => 'admin',
15-
trans_uri => 'http://localhost:4503/bin/receive?authRequestLogin=1',
16-
trans_user => 'admin',
17-
username => 'admin',
9+
home => '/opt/aem',
10+
log_level => 'error',
11+
name => 'publish',
12+
password => 'admin',
13+
runmode => 'author',
14+
trans_password => 'admin',
15+
trans_uri => 'http://localhost:4503/bin/receive?authRequestLogin=1',
16+
trans_user => 'admin',
17+
username => 'admin',
1818
}
1919
~~~

0 commit comments

Comments
 (0)