diff --git a/murano-apps/SystemConfig/package/Classes/ProjectConfig.yaml b/murano-apps/SystemConfig/package/Classes/ProjectConfig.yaml new file mode 100644 index 0000000..372ced6 --- /dev/null +++ b/murano-apps/SystemConfig/package/Classes/ProjectConfig.yaml @@ -0,0 +1,18 @@ +Namespaces: + =: io.murano.opaas.puppet + std: io.murano + res: io.murano.resources + sys: io.murano.system + puppet: io.murano.opaas.puppet + +Name: ProjectConfig + +Methods: + installOnTheNode: + Arguments: + instance: + Contract: $.class(puppet:PuppetInstance) + Body: + - $resources: new(sys:Resources) + - $template: $resources.yaml('ProjectConfig.template') + - $instance.agent.call($template, $resources) diff --git a/murano-apps/SystemConfig/package/Resources/ProjectConfig.template b/murano-apps/SystemConfig/package/Resources/ProjectConfig.template new file mode 100644 index 0000000..c487b40 --- /dev/null +++ b/murano-apps/SystemConfig/package/Resources/ProjectConfig.template @@ -0,0 +1,18 @@ +FormatVersion: 2.1.0 +Version: 1.0.0 +Name: Deploy Project Config + +Parameters: + +Body: | + return deploy().stdout + +Scripts: + deploy: + Type: Application + Version: 1.0.0 + EntryPoint: deploy.sh + Files: [] + Options: + captureStdout: true + captureStderr: true diff --git a/murano-apps/SystemConfig/package/Resources/scripts/deploy.sh b/murano-apps/SystemConfig/package/Resources/scripts/deploy.sh new file mode 100644 index 0000000..b5e0962 --- /dev/null +++ b/murano-apps/SystemConfig/package/Resources/scripts/deploy.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +logger Cloning openstack-ci system-config + +git clone https://github.com/mirademo/system-config.git + +logger Installing openstack-ci system-config + +cd system-config +./install_modules.sh + +cp -r modules/ /etc/puppet/ + + +git clone https://github.com/mirademo/project-config.git +cp -r project-config/ /etc/ diff --git a/murano-apps/SystemConfig/package/logo.png b/murano-apps/SystemConfig/package/logo.png new file mode 100644 index 0000000..7d709dd Binary files /dev/null and b/murano-apps/SystemConfig/package/logo.png differ diff --git a/murano-apps/SystemConfig/package/manifest.yaml b/murano-apps/SystemConfig/package/manifest.yaml new file mode 100644 index 0000000..5dd41ed --- /dev/null +++ b/murano-apps/SystemConfig/package/manifest.yaml @@ -0,0 +1,11 @@ +Format: 1.0 +Type: Library +FullName: io.murano.opaas.puppet.ProjectConfig +Name: ProjectConfig +Description: | + Openstack-CI utilities +Author: 'Mirantis, Inc' +Tags: [CI] +Classes: + io.murano.opaas.puppet.ProjectConfig: ProjectConfig.yaml +Logo: logo.png