[SystemConfig] Add System Config

Application installs all of Openstack-infra puppet
modules

Change-Id: Ieb3fc1b3443c442fb459fa4440fbd9e47fe30436
This commit is contained in:
Alexey Khivin 2016-02-25 20:09:19 +03:00
parent 4f8def5ca9
commit ca55aac29d
5 changed files with 63 additions and 0 deletions

View 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)

View File

@ -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

View 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/

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View 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