57752a27fe
In order to provide better error handling around configured external services, we are adding additional checks to some deployment tasks where we know that there are either external services or services that can be user configurable. *) Adding a repository connectivity test task to be run after netconfig to ensure that software repository access is OK before proceeding with the rest of the deployment. *) Adding in post connectivity tests before NTP server to ensure that those services will be able to reach the configured settings. With this change, we are adding two custom puppet functions (url_available and ntp_available) to the osnailyfacter module. These functions will throw a Puppet::Error if unable to properly communicate with the services. Change-Id: I6b0302ce403871384d377aceb7e94b09126b885e Closes-Bug: 1261940
6 lines
184 B
Puppet
6 lines
184 B
Puppet
notice('MODULAR: connectivity_tests.pp')
|
|
# Pull the list of repos from hiera
|
|
$repo_setup = hiera('repo_setup')
|
|
# test that the repos are accessible
|
|
url_available($repo_setup['repos'])
|