Created
November 12, 2014 21:50
-
-
Save mgagne/1c4f66408a6d4c67e862 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class nova ( | |
$ensure_package => 'present', | |
) { | |
anchor { 'nova::common::package::begin': } -> | |
package { 'nova-common': | |
ensure => $ensure_package, | |
name => $nova::params::common_package_name, | |
} -> | |
anchor { 'nova::common::package::end': } -> | |
anchor { 'nova::config::begin': } -> | |
Nova_config<| |> -> | |
anchor { 'nova::config::end': } -> | |
} | |
class nova::api ( | |
$ensure_package => 'present', | |
) { | |
include ::nova | |
anchor { 'nova::api::package::begin': } -> | |
package { 'nova-api': | |
ensure => $ensure_package, | |
name => $nova::params::api_package_name, | |
} -> | |
anchor { 'nova::api::package::end': } -> | |
Anchor['nova::config::begin'] | |
Anchor['nova::config::end'] -> | |
anchor { 'nova::api::service::begin': } -> | |
service { 'nova-api': | |
ensure => 'running', | |
name => $nova::params::api_service_name, | |
} -> | |
anchor { 'nova::api::service::end': } -> | |
anchor { 'nova::api::service_validation::begin': } -> | |
os_service_validation { 'nova-api': } | |
anchor { 'nova::api::service_validation::end': } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment