summaryrefslogtreecommitdiffstats
path: root/components/congress/install/puppet/manifests/client.pp
blob: bb016e4f3065b3be66aefe4986b2be14e3da4ca2 (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
# == Class: congress::client
#
# Installs congress client.
#
# === Parameters
#
# [*ensure*]
#   (optional) Ensure state of the package.
#   Defaults to 'present'.
#
class congress::client (
  $ensure = 'present'
) {

  package { 'python-congressclient':
    ensure => $ensure,
    tag    => 'openstack',
  }

  if $ensure == 'present' {
    include '::openstacklib::openstackclient'
  } else {
    class { '::openstacklib::openstackclient':
      package_ensure => $ensure,
    }
  }
}