summaryrefslogtreecommitdiffstats
path: root/deploy/puppet/gluon/manifests/init.pp
blob: d8146014597bc55f332a89357753844c70327889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# Copyright (c) 2017 Ericsson and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
class gluon inherits ::gluon::params {

  $bind_ip          = $::gluon::params::bind_ip
  $port             = $::gluon::params::port

  $odl_bind_ip      = hiera(opendaylight::odl_bind_ip, $::gluon::params::odl_bind_ip)
  $odl_rest_port    = hiera(opendaylight::odl_rest_port, $::gluon::params::odl_rest_port)
  $odl_username     = hiera(opendaylight::username, $::gluon::params::odl_username)
  $odl_password     = hiera(opendaylight::password, $::gluon::params::odl_password)

  $etcd_bind_ip     = hiera(tripleo::profile::base::etcd::bind_ip, $::gluon::params::etcd_bind_ip)
  $etcd_client_port = hiera(tripleo::profile::base::etcd::client_port, $::gluon::params::etcd_client_port)

  class { '::gluon::install': } ->
  class { '::gluon::config': } ~>
  class { '::gluon::service': } ->
  Class['::gluon']

}