Skip to content

Commit a6f351b

Browse files
author
shimon
committed
change the tempalte and keys
1 parent feafc87 commit a6f351b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

manifests/init.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
String $user,
2424
String $filename = ".netrc",
2525
Stdlib::Absolutepath $file_path = "$home_base_directory/$user/$filename",
26-
Array[Hash] $machine_user_password_triples) {
26+
Array[String, Hash] $machine_login_password) {
2727

2828
file { $file_path:
2929
ensure => $ensure,
3030
content => epp('netrc/netrc.epp', {
31-
machine_user_password_triples => $machine_user_password_triples
31+
machine_login_password => $machine_login_password
3232
}),
3333
mode => '0600',
3434
owner => "$user"

templates/netrc.epp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<% $machine_user_password_triples.each |$key, $value| { -%>
2-
machine <%= $value['machine'] %> login <%= $value['login'] %> password <%= $value['password'] %>
1+
<% $machine_login_password.each |$machine, $value| { -%>
2+
machine <%= $machine %> login <%= $value['login'] %> password <%= $value['password'] %>
33
<%- } -%>

0 commit comments

Comments
 (0)