Skip to content

Commit a990c0b

Browse files
committed
String to String[1]
1 parent 0e5ea07 commit a990c0b

File tree

5 files changed

+34
-33
lines changed

5 files changed

+34
-33
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ from softwarecollections.org, set python::provider to 'rhscl' and python::versio
7575
of the collection you want to use (e.g., 'python27', 'python33', or 'rh-python34').
7676
7777
## Release Notes
78+
7879
See [Changelog](https://github.com/voxpupuli/puppet-python/blob/master/CHANGELOG.md)
7980
8081
## Contributors

REFERENCE.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -256,39 +256,39 @@ Default value: 'present'
256256

257257
##### `filename`
258258

259-
Data type: `Any`
259+
Data type: `Stdlib::Filemode`
260260

261261
Filename.
262262

263263
Default value: $title
264264

265265
##### `mode`
266266

267-
Data type: `String`
267+
Data type: `String[1]`
268268

269269
File mode.
270270

271271
Default value: '0644'
272272

273273
##### `owner`
274274

275-
Data type: `String`
275+
Data type: `String[1]`
276276

277277
user owner of dotfile
278278

279279
Default value: 'root'
280280

281281
##### `group`
282282

283-
Data type: `String`
283+
Data type: `String[1]`
284284

285285
group owner of dotfile
286286

287287
Default value: 'root'
288288

289289
##### `config`
290290

291-
Data type: `Any`
291+
Data type: `Hash`
292292

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

@@ -547,7 +547,7 @@ Default value: $name
547547

548548
##### `ensure`
549549

550-
Data type: `Variant[Enum[present, absent, latest], String]`
550+
Data type: `Variant[Enum[present, absent, latest], String[1]]`
551551

552552
Require pip to be available.
553553

@@ -579,15 +579,15 @@ Default value: `false`
579579

580580
##### `owner`
581581

582-
Data type: `String`
582+
Data type: `String[1]`
583583

584584
The owner of the virtualenv being manipulated.
585585

586586
Default value: 'root'
587587

588588
##### `group`
589589

590-
Data type: `String`
590+
Data type: `String[1]`
591591

592592
The group of the virtualenv being manipulated.
593593

@@ -659,7 +659,7 @@ Default value: ''
659659

660660
##### `log_dir`
661661

662-
Data type: `String`
662+
Data type: `String[1]`
663663

664664
Log directory
665665

manifests/dotfile.pp

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
#
2525
define python::dotfile (
2626
Enum['absent', 'present'] $ensure = 'present',
27-
$filename = $title,
28-
String $owner = 'root',
29-
String $group = 'root',
30-
String $mode = '0644',
31-
$config = {},
27+
Stdlib::Filemode $filename = $title,
28+
String[1] $owner = 'root',
29+
String[1] $group = 'root',
30+
String[1] $mode = '0644',
31+
Hash $config = {},
3232
) {
3333
$parent_dir = dirname($filename)
3434

manifests/pip.pp

+19-19
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,25 @@
5050
# }
5151
#
5252
define python::pip (
53-
String $pkgname = $name,
54-
Variant[Enum[present, absent, latest], String] $ensure = present,
55-
String $virtualenv = 'system',
56-
Enum['pip', 'pip3'] $pip_provider = 'pip',
57-
Variant[Boolean, String] $url = false,
58-
String $owner = 'root',
59-
String $group = 'root',
60-
$umask = undef,
61-
$index = false,
62-
Variant[Boolean, String] $proxy = false,
63-
$egg = false,
64-
Boolean $editable = false,
65-
$environment = [],
66-
$extras = [],
67-
String $install_args = '',
68-
String $uninstall_args = '',
69-
Numeric $timeout = 1800,
70-
String $log_dir = '/tmp',
71-
Array[String] $path = ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
53+
String $pkgname = $name,
54+
Variant[Enum[present, absent, latest], String[1]] $ensure = present,
55+
String $virtualenv = 'system',
56+
Enum['pip', 'pip3'] $pip_provider = 'pip',
57+
Variant[Boolean, String] $url = false,
58+
String[1] $owner = 'root',
59+
String[1] $group = 'root',
60+
$umask = undef,
61+
$index = false,
62+
Variant[Boolean, String] $proxy = false,
63+
$egg = false,
64+
Boolean $editable = false,
65+
$environment = [],
66+
$extras = [],
67+
String $install_args = '',
68+
String $uninstall_args = '',
69+
Numeric $timeout = 1800,
70+
String[1] $log_dir = '/tmp',
71+
Array[String] $path = ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
7272
) {
7373
$python_provider = getparam(Class['python'], 'provider')
7474
$python_version = getparam(Class['python'], 'version')

0 commit comments

Comments
 (0)