Skip to content

Commit

Permalink
String to String[1]
Browse files Browse the repository at this point in the history
  • Loading branch information
danquack committed Oct 24, 2018
1 parent 0e5ea07 commit b9b4e34
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 36 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ from softwarecollections.org, set python::provider to 'rhscl' and python::versio
of the collection you want to use (e.g., 'python27', 'python33', or 'rh-python34').
## Release Notes
See [Changelog](https://github.com/voxpupuli/puppet-python/blob/master/CHANGELOG.md)
## Contributors
Expand Down
24 changes: 12 additions & 12 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,39 +256,39 @@ Default value: 'present'

##### `filename`

Data type: `Any`
Data type: `Stdlib::Filemode`

Filename.

Default value: $title

##### `mode`

Data type: `String`
Data type: `String[1]`

File mode.

Default value: '0644'

##### `owner`

Data type: `String`
Data type: `String[1]`

user owner of dotfile

Default value: 'root'

##### `group`

Data type: `String`
Data type: `String[1]`

group owner of dotfile

Default value: 'root'

##### `config`

Data type: `Any`
Data type: `Hash`

Config hash. This will be expanded to an ini-file.

Expand Down Expand Up @@ -539,15 +539,15 @@ must be unique

##### `pkgname`

Data type: `String`
Data type: `String[1]`

the name of the package.

Default value: $name

##### `ensure`

Data type: `Variant[Enum[present, absent, latest], String]`
Data type: `Variant[Enum[present, absent, latest], String[1]]`

Require pip to be available.

Expand Down Expand Up @@ -579,15 +579,15 @@ Default value: `false`

##### `owner`

Data type: `String`
Data type: `String[1]`

The owner of the virtualenv being manipulated.

Default value: 'root'

##### `group`

Data type: `String`
Data type: `String[1]`

The group of the virtualenv being manipulated.

Expand Down Expand Up @@ -643,23 +643,23 @@ Default value: 1800

##### `install_args`

Data type: `String`
Data type: `String[1]`

Any additional installation arguments that will be supplied when running pip install.

Default value: ''

##### `uninstall_args`

Data type: `String`
Data type: `String[1]`

Any additional arguments that will be supplied when running pip uninstall.

Default value: ''

##### `log_dir`

Data type: `String`
Data type: `String[1]`

Log directory

Expand Down
10 changes: 5 additions & 5 deletions manifests/dotfile.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
#
define python::dotfile (
Enum['absent', 'present'] $ensure = 'present',
$filename = $title,
String $owner = 'root',
String $group = 'root',
String $mode = '0644',
$config = {},
Stdlib::Filemode $filename = $title,
String[1] $owner = 'root',
String[1] $group = 'root',
String[1] $mode = '0644',
Hash $config = {},
) {
$parent_dir = dirname($filename)

Expand Down
38 changes: 19 additions & 19 deletions manifests/pip.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,25 @@
# }
#
define python::pip (
String $pkgname = $name,
Variant[Enum[present, absent, latest], String] $ensure = present,
String $virtualenv = 'system',
Enum['pip', 'pip3'] $pip_provider = 'pip',
Variant[Boolean, String] $url = false,
String $owner = 'root',
String $group = 'root',
$umask = undef,
$index = false,
Variant[Boolean, String] $proxy = false,
$egg = false,
Boolean $editable = false,
$environment = [],
$extras = [],
String $install_args = '',
String $uninstall_args = '',
Numeric $timeout = 1800,
String $log_dir = '/tmp',
Array[String] $path = ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
String $pkgname = $name,
Variant[Enum[present, absent, latest], String[1]] $ensure = present,
String $virtualenv = 'system',
Enum['pip', 'pip3'] $pip_provider = 'pip',
Variant[Boolean, String] $url = false,
String[1] $owner = 'root',
String[1] $group = 'root',
$umask = undef,
$index = false,
Variant[Boolean, String] $proxy = false,
$egg = false,
Boolean $editable = false,
$environment = [],
$extras = [],
String[1] $install_args = '',
String[1] $uninstall_args = '',
Numeric $timeout = 1800,
String[1] $log_dir = '/tmp',
Array[String] $path = ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
) {
$python_provider = getparam(Class['python'], 'provider')
$python_version = getparam(Class['python'], 'version')
Expand Down

0 comments on commit b9b4e34

Please sign in to comment.