summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2017-02-02 18:50:17 +0100
committerGeorg Kunz <georg.kunz@ericsson.com>2017-02-02 18:50:17 +0100
commit94aefc7d43d2dcdbfb6a0951f9120d9e17f6db74 (patch)
treef9d7572aaa4348fc99152011016585e23f68e0e0 /deploy
parentaf3ffb6f8e93346cfc170d7989c457e5960d2a08 (diff)
Adding puppet files for Gluon
These file should eventually move to a gluon-puppet repo in the Openstack namespace. Change-Id: Ib9d9a322c28810b20f8c2ad7563b7f3d1b9a0eb8 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/puppet/gluon/manifests/gluon-install.pp4
-rw-r--r--deploy/puppet/gluon/manifests/gluon-post.pp4
-rwxr-xr-xdeploy/puppet/gluon/modules/gluon/manifests/init.pp1
-rw-r--r--deploy/puppet/gluon/modules/gluon/manifests/install.pp11
-rwxr-xr-xdeploy/puppet/gluon/modules/gluon/manifests/post.pp11
-rw-r--r--deploy/puppet/gluon/modules/gluon/templates/proton-shim.conf.erb31
6 files changed, 62 insertions, 0 deletions
diff --git a/deploy/puppet/gluon/manifests/gluon-install.pp b/deploy/puppet/gluon/manifests/gluon-install.pp
new file mode 100644
index 0000000..c694b32
--- /dev/null
+++ b/deploy/puppet/gluon/manifests/gluon-install.pp
@@ -0,0 +1,4 @@
+notice('MODULAR: gluon-install.pp')
+include gluon
+
+class { 'gluon::install': }
diff --git a/deploy/puppet/gluon/manifests/gluon-post.pp b/deploy/puppet/gluon/manifests/gluon-post.pp
new file mode 100644
index 0000000..e32f424
--- /dev/null
+++ b/deploy/puppet/gluon/manifests/gluon-post.pp
@@ -0,0 +1,4 @@
+notice('MODULAR: gluon-post.pp')
+include gluon
+
+class { 'gluon::post': }
diff --git a/deploy/puppet/gluon/modules/gluon/manifests/init.pp b/deploy/puppet/gluon/modules/gluon/manifests/init.pp
new file mode 100755
index 0000000..77f22a9
--- /dev/null
+++ b/deploy/puppet/gluon/modules/gluon/manifests/init.pp
@@ -0,0 +1 @@
+class gluon { }
diff --git a/deploy/puppet/gluon/modules/gluon/manifests/install.pp b/deploy/puppet/gluon/modules/gluon/manifests/install.pp
new file mode 100644
index 0000000..28dbca2
--- /dev/null
+++ b/deploy/puppet/gluon/modules/gluon/manifests/install.pp
@@ -0,0 +1,11 @@
+class gluon::install inherits gluon {
+
+ package { 'python-click':
+ ensure => installed,
+ }
+
+ package { 'gluon':
+ ensure => installed,
+ }
+
+}
diff --git a/deploy/puppet/gluon/modules/gluon/manifests/post.pp b/deploy/puppet/gluon/modules/gluon/manifests/post.pp
new file mode 100755
index 0000000..dc3ac21
--- /dev/null
+++ b/deploy/puppet/gluon/modules/gluon/manifests/post.pp
@@ -0,0 +1,11 @@
+class gluon::post inherits gluon {
+
+ file { '/etc/proton/proton-shim.conf':
+ ensure => 'file',
+ owner => 'proton',
+ group => 'proton',
+ mode => 'go+w',
+ content => template('gluon/proton-shim.conf.erb'),
+ }
+
+}
diff --git a/deploy/puppet/gluon/modules/gluon/templates/proton-shim.conf.erb b/deploy/puppet/gluon/modules/gluon/templates/proton-shim.conf.erb
new file mode 100644
index 0000000..3391202
--- /dev/null
+++ b/deploy/puppet/gluon/modules/gluon/templates/proton-shim.conf.erb
@@ -0,0 +1,31 @@
+[shim]
+# IP of the etcd server
+etcd_host = <%= scope.function_hiera(['etcd::bind_ip']) %>
+
+# Port of the etcd server
+etcd_port = <%= scope.function_hiera(['etcd::client_port']) %>
+
+# The shim server only handles bind requests for ports on specific compute hosts. This
+# configuration option allows to specify a list of compute hosts or '*' as wildcard
+# matching all hosts
+# host_list = host1,host2,host3
+host_list = *
+
+# Select the model to load with the corresponding backend. This config option is a dict
+# where the key represents the name of the model and the value the name of the backend
+# which is to be used for this model.
+handlers = net-l3vpn:net-l3vpn-odl
+
+
+[shim_odl]
+# IP of the OpenDaylight RESTconf interface. Typically needs to be changed after installation.
+odl_host = <%= scope.function_hiera(['opendaylight::odl_bind_ip']) %>
+
+# Default port of the RESTconf interface.
+odl_port = <%= scope.function_hiera(['opendaylight::odl_rest_port']) %>
+
+# Default user for accessing the OpenDaylight RESTconf interface
+odl_user = <%= scope.function_hiera(['opendaylight::username']) %>
+
+# Default password of the default user for accessing the OpenDaylight RESTconf interface
+odl_passwd = <%= scope.function_hiera(['opendaylight::password']) %>