Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for virtualenv #24

Merged
merged 1 commit into from
Mar 12, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@ Note that this module no longer explicitly requires the puppetlabs apache module

puppet module install puppetlabs-apache

This module also requires the ``git`` and ``virtualenv`` packages. These can be enabled in the module by:


```puppet
class { 'puppetboard':
manage_git => true,
manage_virtualenv => true,
}

```

or by:

```puppet
class { 'puppetboard':
manage_git => 'latest',
manage_virtualenv => 'latest',
}

```


Usage
-----

Expand Down
44 changes: 27 additions & 17 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
# (bool) If true, require the git package. If false do nothing.
# Defaults to false
#
# [*manage_virtualenv*]
# (bool) If true, require the virtualenv package. If false do nothing.
# Defaults to false
#
# === Examples
#
Expand All @@ -100,24 +103,25 @@
# }
#
class puppetboard(
$user = $::puppetboard::params::user,
$group = $::puppetboard::params::group,
$basedir = $::puppetboard::params::basedir,
$git_source = $::puppetboard::params::git_source,
$user = $::puppetboard::params::user,
$group = $::puppetboard::params::group,
$basedir = $::puppetboard::params::basedir,
$git_source = $::puppetboard::params::git_source,

$puppetdb_host = $::puppetboard::params::puppetdb_host,
$puppetdb_port = $::puppetboard::params::puppetdb_port,
$puppetdb_key = $::puppetboard::params::puppetdb_key,
$puppetdb_ssl = $::puppetboard::params::puppetdb_ssl,
$puppetdb_cert = $::puppetboard::params::puppetdb_cert,
$puppetdb_timeout = $::puppetboard::params::puppetdb_timeout,
$unresponsive = $::puppetboard::params::unresponsive,
$enable_query = $::puppetboard::params::enable_query,
$python_loglevel = $::puppetboard::params::python_loglevel,
$python_proxy = $::puppetboard::params::python_proxy,
$experimental = $::puppetboard::params::experimental,
$revision = $::puppetboard::params::revision,
$manage_git = false,
$puppetdb_host = $::puppetboard::params::puppetdb_host,
$puppetdb_port = $::puppetboard::params::puppetdb_port,
$puppetdb_key = $::puppetboard::params::puppetdb_key,
$puppetdb_ssl = $::puppetboard::params::puppetdb_ssl,
$puppetdb_cert = $::puppetboard::params::puppetdb_cert,
$puppetdb_timeout = $::puppetboard::params::puppetdb_timeout,
$unresponsive = $::puppetboard::params::unresponsive,
$enable_query = $::puppetboard::params::enable_query,
$python_loglevel = $::puppetboard::params::python_loglevel,
$python_proxy = $::puppetboard::params::python_proxy,
$experimental = $::puppetboard::params::experimental,
$revision = $::puppetboard::params::revision,
$manage_git = false,
$manage_virtualenv = false,

) inherits ::puppetboard::params {

Expand Down Expand Up @@ -211,4 +215,10 @@
}
}

if $manage_virtualenv {
package { $::puppetboard::params::virtualenvpkg:
ensure => $manage_virtualenv
}
}

}
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
$python_proxy = false
$experimental = 'False'
$revision = undef
$virtualenv = 'python-virtualenv'
}