From bbed56bfccd84e6d7056dee25c508571ce3082c6 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 20 Oct 2014 21:38:18 -0400 Subject: implement optional provider custom puppet support (#6201, #6225) if files/custom-puppet/{manifests,modules} does not exist, it will be created and files/custom-puppet/manifests/site.pp will be populated with a comment and necessary tag to apply in the platform. The site.pp must exist, if it does not, then the import in the platform/manifest/site.pp will fail. Any puppet resources put in custom-puppet/manifests/site.pp will be executed, and any modules placed in custom-puppet/modules will be made available through the --modulepath parameter to puppet. This requires the associated platform changes (#6226) --- lib/leap_cli/constants.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/leap_cli/constants.rb') diff --git a/lib/leap_cli/constants.rb b/lib/leap_cli/constants.rb index bf30df1..dcb66be 100644 --- a/lib/leap_cli/constants.rb +++ b/lib/leap_cli/constants.rb @@ -1,7 +1,11 @@ module LeapCli PUPPET_DESTINATION = '/srv/leap' + CUSTOM_PUPPET_DESTINATION = '/srv/leap/custom-puppet' + CUSTOM_PUPPET_SOURCE = '/files/custom-puppet/' + CUSTOM_PUPPET_SITE = "#{CUSTOM_PUPPET_SOURCE}/manifests/site.pp" + CUSTOM_PUPPET_MODULES = "#{CUSTOM_PUPPET_SOURCE}/modules" INITIALIZED_FILE = "#{PUPPET_DESTINATION}/initialized" DEFAULT_TAGS = ['leap_base','leap_service'] -end \ No newline at end of file +end -- cgit v1.2.3