use sunet::ssh_git_repo
This commit is contained in:
parent
1aef1b6e43
commit
66aa11b18f
1 changed files with 8 additions and 10 deletions
|
@ -142,16 +142,14 @@ class saml_metadata($filename=undef, $cert=undef, $url=undef) {
|
||||||
sunet::metadata { "$filename": url => $url, cert => $cert }
|
sunet::metadata { "$filename": url => $url, cert => $cert }
|
||||||
}
|
}
|
||||||
|
|
||||||
class md_repo_client($hostname=undef) {
|
class md_repo_client {
|
||||||
$host = $hostname ? {
|
sunet::ssh_git_repo {'/var/cache/metadata':
|
||||||
undef => $title,
|
username => 'root',
|
||||||
default => $hostname
|
group => 'root',
|
||||||
}
|
hostname => 'r1.komreg.net',
|
||||||
sunet::ssh_keyscan::host {$host: } ->
|
url => 'git@r1.komreg.net:komreg-metadata.git',
|
||||||
vcsrepo { '/opt/swamid-metadata':
|
id => 'komreg',
|
||||||
ensure => present,
|
manage_user => false
|
||||||
provider => git,
|
|
||||||
source => "git@$host:swamid-metadata.git"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue