Merge "[SystemConfig] Add System Config"
This commit is contained in:
commit
e661a5fe0e
18
murano-apps/SystemConfig/package/Classes/ProjectConfig.yaml
Normal file
18
murano-apps/SystemConfig/package/Classes/ProjectConfig.yaml
Normal file
@ -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)
|
@ -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
|
16
murano-apps/SystemConfig/package/Resources/scripts/deploy.sh
Normal file
16
murano-apps/SystemConfig/package/Resources/scripts/deploy.sh
Normal file
@ -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/
|
BIN
murano-apps/SystemConfig/package/logo.png
Normal file
BIN
murano-apps/SystemConfig/package/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
11
murano-apps/SystemConfig/package/manifest.yaml
Normal file
11
murano-apps/SystemConfig/package/manifest.yaml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user