Updated puppet recepies.
Change-Id: Iaacba512063811f753a2db768858b22b73f3b9c7
This commit is contained in:
parent
0ee80565dc
commit
3aa006eda1
|
@ -0,0 +1,23 @@
|
|||
Puppet recepies for Murano components
|
||||
==================
|
||||
|
||||
### How to install Murano using Puppet recepies?
|
||||
|
||||
Need to perform the following commands:
|
||||
# apt-get install -y git puppet rabbitmq-server
|
||||
# mkdir -p ~/.puppet/modules
|
||||
# puppet module install puppetlabs/vcsrepo
|
||||
# puppet module install puppetlabs/rabbitmq
|
||||
# puppet module install puppetlabs/inifile
|
||||
# git clone https://github.com/stackforge/murano-deployment
|
||||
# cd murano-deployment/puppet
|
||||
|
||||
After that need to edit recepies (to change default values of parameters) and apply recepies:
|
||||
# puppet apply puppet_Murano_REST_API.pp
|
||||
# puppet apply puppet_Murano_Conductor.pp
|
||||
# puppet apply puppet_Murano_Dashboard.pp
|
||||
|
||||
SEE ALSO
|
||||
========
|
||||
* `Murano <http://murano.mirantis.com>`__
|
||||
|
|
@ -5,11 +5,12 @@
|
|||
# Need to track all installation actions from puppet recepies
|
||||
|
||||
class murano::conductor (
|
||||
$rabbit_vhost = 'murano',
|
||||
$rabbit_user = 'murano',
|
||||
$rabbit_vhost = 'murano',
|
||||
$rabbit_user = 'murano',
|
||||
$rabbit_password = 'murano',
|
||||
$rabbit_host = '127.0.0.1',
|
||||
$keystone_url = 'http://127.0.0.1:5000/v2.0'
|
||||
$rabbit_host = '127.0.0.1',
|
||||
$keystone_url = 'http://127.0.0.1:5000/v2.0',
|
||||
$branch = 'master'
|
||||
) {
|
||||
rabbitmq_user { "$rabbit_user":
|
||||
admin => true,
|
||||
|
@ -33,19 +34,25 @@ class murano::conductor (
|
|||
ensure => present,
|
||||
provider => git,
|
||||
source => 'git://github.com/stackforge/murano-conductor.git',
|
||||
revision => 'master',
|
||||
revision => $branch,
|
||||
alias => 'step1',
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
centos: { $cmd = "sh setup-centos.sh purge-init; sh setup-centos.sh install" }
|
||||
default: { $cmd = "sh setup.sh purge-init; sh setup.sh install" }
|
||||
}
|
||||
|
||||
exec {'Install new version':
|
||||
require => Vcsrepo['step1'],
|
||||
command => 'chmod +x setup.sh; ./setup.sh purge-init; ./setup.sh install',
|
||||
command => $cmd,
|
||||
user => 'root',
|
||||
provider => shell,
|
||||
cwd => '/tmp/murano-conductor',
|
||||
alias => 'step2',
|
||||
}
|
||||
|
||||
|
||||
exec {'Copy configuration files':
|
||||
require => Exec['step2'],
|
||||
command => 'cp conductor.conf.sample conductor.conf',
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
# TODO:
|
||||
# 1. tnurlygayanov: Fix issue with configuration files (like in OpenStack projects)
|
||||
# 2. tnurlygayanov: Fix issue with installation from git repository.
|
||||
# Now we are use ./setup.sh script from git repository.
|
||||
# Need to track all installation actions from puppet recepies
|
||||
|
||||
class murano::dashboard (
|
||||
$branch = 'master'
|
||||
) {
|
||||
|
||||
vcsrepo { '/tmp/murano-dashboard':
|
||||
ensure => present,
|
||||
provider => git,
|
||||
source => 'git://github.com/stackforge/murano-dashboard.git',
|
||||
revision => $branch,
|
||||
alias => 'step1',
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
centos: { $cmd = "sh setup-centos.sh install" }
|
||||
default: { $cmd = "sh setup.sh install" }
|
||||
}
|
||||
|
||||
exec {'Install new version':
|
||||
require => Vcsrepo['step1'],
|
||||
command => $cmd,
|
||||
user => 'root',
|
||||
provider => shell,
|
||||
cwd => '/tmp/murano-dashboard',
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class { 'murano::dashboard': }
|
||||
|
|
@ -18,7 +18,8 @@ class murano::api (
|
|||
$murano_db_user = 'murano',
|
||||
$murano_db_password = 'murano',
|
||||
$murano_db_dbname = 'murano',
|
||||
$db_host = 'localhost'
|
||||
$db_host = 'localhost',
|
||||
$brach = 'master'
|
||||
) {
|
||||
|
||||
case $db_type {
|
||||
|
@ -49,13 +50,18 @@ class murano::api (
|
|||
ensure => present,
|
||||
provider => git,
|
||||
source => 'git://github.com/stackforge/murano-api.git',
|
||||
revision => 'master',
|
||||
revision => $branch,
|
||||
alias => 'step1',
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
centos: { $cmd = "sh setup-centos.sh purge-init; sh setup-centos.sh install" }
|
||||
default: { $cmd = "sh setup.sh purge-init; sh setup.sh install" }
|
||||
}
|
||||
|
||||
exec {'Install new version':
|
||||
require => Vcsrepo['step1'],
|
||||
command => 'chmod +x setup.sh; ./setup.sh purge-init; ./setup.sh install',
|
||||
command => $cmd,
|
||||
user => 'root',
|
||||
provider => shell,
|
||||
cwd => '/tmp/murano-api',
|
||||
|
|
Loading…
Reference in New Issue