Skip to content

Commit

Permalink
Merge pull request #289 from shinesolutions/remove-agent-ahead-of-hea…
Browse files Browse the repository at this point in the history
…lthcheck

Moved "Remove all agents" step ahead of healthcheck during provisioni…
  • Loading branch information
mattd-mb authored Oct 25, 2024
2 parents 51089c2 + c5c32fa commit e87dd74
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 46 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed incorrect syntax in RTK config file

### Changed
- Moved "Remove all agents" step ahead of healthcheck during provisioning
- Added authentication to Stop webdav/davex bundle step


## [4.1.7] - 2024-09-11
### Added
- Added new AEM profile: aem65_sp17
Expand Down
50 changes: 27 additions & 23 deletions manifests/config_author_primary.pp
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,29 @@
enable_truststore_removal => $enable_truststore_removal,
run_mode => $run_mode,
tmp_dir => $tmp_dir,
} -> aem_curator::config_aem_agents { "${aem_id}: Remove all agents":
run_mode => 'author',
aem_id => $aem_id,
enable_remove_all_agents => $enable_remove_all_agents,
} -> aem_aem { "${aem_id}: Wait until login page is ready after removing all agents":
ensure => login_page_is_ready,
retries_max_tries => $login_ready_max_tries,
retries_base_sleep_seconds => $login_ready_base_sleep_seconds,
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
aem_id => $aem_id,
} -> aem_aem { "${aem_id}: Wait until aem health check is ok after removing all agents":
ensure => aem_health_check_is_ok,
retries_max_tries => $login_ready_max_tries,
retries_base_sleep_seconds => $login_ready_base_sleep_seconds,
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
tags => 'deep',
aem_id => $aem_id,
} -> aem_bundle { "${aem_id}: Stop webdav bundle":
ensure => stopped,
name => 'org.apache.sling.jcr.webdav',
aem_id => $aem_id,
ensure => stopped,
name => 'org.apache.sling.jcr.webdav',
aem_username => 'admin',
aem_password => $credentials_hash['admin'],
aem_id => $aem_id,
} -> aem_aem { "${aem_id}: Wait until login page is ready after stopping webdav bundle":
ensure => login_page_is_ready,
retries_max_tries => $login_ready_max_tries,
Expand All @@ -364,9 +383,11 @@
tags => 'deep',
aem_id => $aem_id,
} -> aem_bundle { "${aem_id}: Stop davex bundle":
ensure => stopped,
name => 'org.apache.sling.jcr.davex',
aem_id => $aem_id,
ensure => stopped,
name => 'org.apache.sling.jcr.davex',
aem_username => 'admin',
aem_password => $credentials_hash['admin'],
aem_id => $aem_id,
} -> aem_aem { "${aem_id}: Wait until login page is ready after stopping davex bundle":
ensure => login_page_is_ready,
retries_max_tries => $login_ready_max_tries,
Expand Down Expand Up @@ -401,23 +422,6 @@
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
tags => 'deep',
aem_id => $aem_id,
} -> aem_curator::config_aem_agents { "${aem_id}: Remove all agents":
run_mode => 'author',
aem_id => $aem_id,
enable_remove_all_agents => $enable_remove_all_agents,
} -> aem_aem { "${aem_id}: Wait until login page is ready after removing all agents":
ensure => login_page_is_ready,
retries_max_tries => $login_ready_max_tries,
retries_base_sleep_seconds => $login_ready_base_sleep_seconds,
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
aem_id => $aem_id,
} -> aem_aem { "${aem_id}: Wait until aem health check is ok after removing all agents":
ensure => aem_health_check_is_ok,
retries_max_tries => $login_ready_max_tries,
retries_base_sleep_seconds => $login_ready_base_sleep_seconds,
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
tags => 'deep',
aem_id => $aem_id,
} -> aem_curator::config_truststore { "${aem_id}: Configure AEM Truststore":
aem_id => $aem_id,
enable_truststore_creation => $enable_truststore_creation,
Expand Down
50 changes: 27 additions & 23 deletions manifests/config_publish.pp
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,29 @@
enable_truststore_removal => $enable_truststore_removal,
run_mode => $run_mode,
tmp_dir => $tmp_dir,
} -> aem_curator::config_aem_agents { "${aem_id}: Remove all agents":
run_mode => 'publish',
aem_id => $aem_id,
enable_remove_all_agents => $enable_remove_all_agents,
} -> aem_aem { "${aem_id}: Wait until login page is ready after removing all agents":
ensure => login_page_is_ready,
retries_max_tries => $login_ready_max_tries,
retries_base_sleep_seconds => $login_ready_base_sleep_seconds,
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
aem_id => $aem_id,
} -> aem_aem { "${aem_id}: Wait until aem health check is ok after removing all agents":
ensure => aem_health_check_is_ok,
retries_max_tries => $login_ready_max_tries,
retries_base_sleep_seconds => $login_ready_base_sleep_seconds,
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
tags => 'deep',
aem_id => $aem_id,
} -> aem_bundle { "${aem_id}: Stop webdav bundle":
ensure => stopped,
name => 'org.apache.sling.jcr.webdav',
aem_id => $aem_id,
ensure => stopped,
name => 'org.apache.sling.jcr.webdav',
aem_username => 'admin',
aem_password => $credentials_hash['admin'],
aem_id => $aem_id,
} -> aem_aem { "${aem_id}: Wait until login page is ready after stopping webdav bundle":
ensure => login_page_is_ready,
retries_max_tries => $login_ready_max_tries,
Expand All @@ -348,9 +367,11 @@
tags => 'deep',
aem_id => $aem_id,
} -> aem_bundle { "${aem_id}: Stop davex bundle":
ensure => stopped,
name => 'org.apache.sling.jcr.davex',
aem_id => $aem_id,
ensure => stopped,
name => 'org.apache.sling.jcr.davex',
aem_username => 'admin',
aem_password => $credentials_hash['admin'],
aem_id => $aem_id,
} -> aem_aem { "${aem_id}: Wait until login page is ready after stopping davex bundle":
ensure => login_page_is_ready,
retries_max_tries => $login_ready_max_tries,
Expand Down Expand Up @@ -385,23 +406,6 @@
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
tags => 'deep',
aem_id => $aem_id,
} -> aem_curator::config_aem_agents { "${aem_id}: Remove all agents":
run_mode => 'publish',
aem_id => $aem_id,
enable_remove_all_agents => $enable_remove_all_agents,
} -> aem_aem { "${aem_id}: Wait until login page is ready after removing all agents":
ensure => login_page_is_ready,
retries_max_tries => $login_ready_max_tries,
retries_base_sleep_seconds => $login_ready_base_sleep_seconds,
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
aem_id => $aem_id,
} -> aem_aem { "${aem_id}: Wait until aem health check is ok after removing all agents":
ensure => aem_health_check_is_ok,
retries_max_tries => $login_ready_max_tries,
retries_base_sleep_seconds => $login_ready_base_sleep_seconds,
retries_max_sleep_seconds => $login_ready_max_sleep_seconds,
tags => 'deep',
aem_id => $aem_id,
} -> aem_curator::config_truststore { "${aem_id}: Configure AEM Truststore":
aem_id => $aem_id,
enable_truststore_creation => $enable_truststore_creation,
Expand Down

0 comments on commit e87dd74

Please sign in to comment.