Skip to content

Commit 064cb64

Browse files
authored
Merge pull request #408 from puppetlabs/pdksync_maint/pdk_update_20-04
pdksync - (Maint) PDK Update
2 parents e667149 + ed0a32c commit 064cb64

File tree

11 files changed

+18
-26
lines changed

11 files changed

+18
-26
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,5 +200,5 @@ jobs:
200200
repo_token: ${{ secrets.GITHUB_TOKEN }}
201201
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK }}
202202
# Optional Input
203-
channel: '#team-ia-bots'
203+
channel: '#team-cat-bots'
204204
name: 'GABot'

.github/workflows/spec.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ jobs:
5454
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment'
5555
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
5656
echo STEP_START=$(date +%s) >> $GITHUB_ENV
57-
# - name: Run Static & Syntax Tests
58-
# if: ${{ github.repository_owner == 'puppetlabs' }}
59-
# run: |
60-
# buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
57+
- name: Run Static & Syntax Tests
58+
if: ${{ github.repository_owner == 'puppetlabs' }}
59+
run: |
60+
buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
6161
6262
- name: Setup Spec Test Matrix
6363
id: get-matrix

examples/group_common.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$users_hash = {
55
'jblow' => {
66
'comment' => 'Joe Blow',
7-
'groups' => [ wheel ],
7+
'groups' => [wheel],
88
'uid' => '1115',
99
'gid' => '1115',
1010
'group' => 'mrblow',

examples/user_group_hash.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'jeff' => {
1313
'shell' => '/bin/zsh',
1414
'comment' => 'Jeff McCune',
15-
'groups' => [ admin, sudonopw, ],
15+
'groups' => [admin, sudonopw,],
1616
'uid' => '1112',
1717
'gid' => '1112',
1818
'locked' => true,

manifests/home_dir.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#
5050
# @api private
5151
#
52-
define accounts::home_dir(
52+
define accounts::home_dir (
5353
Enum['absent','present'] $ensure = 'present',
5454
Optional[String] $bash_profile_content = undef,
5555
Optional[Stdlib::Filesource] $bash_profile_source = undef,

manifests/init.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
Accounts::Group::Hash $group_list = {},
2222
Accounts::User::Resource $user_defaults = {},
2323
Accounts::User::Hash $user_list = {},
24-
)
25-
{
24+
) {
2625
ensure_resources('group', $group_list, $group_defaults)
2726
ensure_resources('accounts::user', $user_list, $user_defaults)
2827
}

manifests/key_management.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#
3434
# @api private
3535
#
36-
define accounts::key_management(
36+
define accounts::key_management (
3737
Accounts::User::Name $user,
3838
Enum['absent','present'] $ensure = 'present',
3939
Optional[Accounts::User::Name] $group = undef,
@@ -45,7 +45,6 @@
4545
Array[String] $sshkeys = [],
4646
Optional[Stdlib::Unixpath] $user_home = undef,
4747
) {
48-
4948
if $user_home {
5049
$sshkey_dotdir = "${user_home}/.ssh"
5150
}
@@ -79,7 +78,6 @@
7978
$sshkey_require = File[$sshkey_dotdir]
8079
}
8180
$sshkey_before = undef
82-
8381
} else {
8482
if $purge_user_home and $user_home {
8583
file { $sshkey_dotdir:

manifests/manage_keys.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818
#
1919
# @api private
2020
#
21-
define accounts::manage_keys(
21+
define accounts::manage_keys (
2222
Stdlib::Unixpath $key_file,
2323
String $keyspec,
2424
Accounts::User::Name $user,
2525
Enum['absent','present'] $ensure = 'present',
2626
Accounts::User::Name $key_owner = $user,
2727
) {
28-
2928
$key_def = accounts_ssh_authorized_keys_line_parser($keyspec)
3029
if (! $key_def) {
3130
err("Could not interpret SSH key definition: '${keyspec}'")

manifests/user.pp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
Boolean $purge_sshkeys = false,
209209
Boolean $purge_user_home = false,
210210
Optional[String] $salt = undef,
211-
Optional[Stdlib::Unixpath] $shell = '/bin/bash',
211+
Stdlib::Unixpath $shell = '/bin/bash',
212212
Optional[Stdlib::Unixpath] $sshkey_custom_path = undef,
213213
Optional[Accounts::User::Name] $sshkey_group = $group,
214214
Optional[Accounts::User::Name] $sshkey_owner = $name,
@@ -217,7 +217,6 @@
217217
Boolean $system = false,
218218
Optional[Accounts::User::Uid] $uid = undef,
219219
) {
220-
221220
assert_type(Accounts::User::Name, $name)
222221

223222
include accounts::user::defaults
@@ -332,7 +331,7 @@
332331
forward_source => $forward_source,
333332
user => $name,
334333
group => $group,
335-
require => [ User[$name] ],
334+
require => [User[$name]],
336335
}
337336
accounts::key_management { "${name}_key_management":
338337
ensure => 'present',
@@ -345,7 +344,7 @@
345344
sshkey_group => $sshkey_group,
346345
sshkey_mode => $sshkey_mode,
347346
purge_user_home => $purge_user_home,
348-
require => Accounts::Home_dir[$_home]
347+
require => Accounts::Home_dir[$_home],
349348
}
350349
} elsif $sshkeys != [] {
351350
# We are not managing the user's home directory but we have specified a
@@ -361,9 +360,8 @@
361360
sshkey_mode => $sshkey_mode,
362361
sshkey_custom_path => $sshkey_custom_path,
363362
}
364-
}
365-
else {
366-
warning("ssh keys were passed for user ${name} but $managehome is set to false; not managing user ssh keys")
363+
} else {
364+
warning("ssh keys were passed for user ${name} but managehome is set to false; not managing user ssh keys")
367365
}
368366
}
369367
}

manifests/user/defaults.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
Stdlib::AbsolutePath $home_template = '/home/%s',
1515
Stdlib::AbsolutePath $locked_shell = '/sbin/nologin',
1616
Stdlib::AbsolutePath $root_home = '/root',
17-
)
18-
{
17+
) {
1918
# Nothing to see here; move along.
2019
}
21-

0 commit comments

Comments
 (0)