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 }
|
||||
}
|
||||
|
||||
class md_repo_client($hostname=undef) {
|
||||
$host = $hostname ? {
|
||||
undef => $title,
|
||||
default => $hostname
|
||||
}
|
||||
sunet::ssh_keyscan::host {$host: } ->
|
||||
vcsrepo { '/opt/swamid-metadata':
|
||||
ensure => present,
|
||||
provider => git,
|
||||
source => "git@$host:swamid-metadata.git"
|
||||
class md_repo_client {
|
||||
sunet::ssh_git_repo {'/var/cache/metadata':
|
||||
username => 'root',
|
||||
group => 'root',
|
||||
hostname => 'r1.komreg.net',
|
||||
url => 'git@r1.komreg.net:komreg-metadata.git',
|
||||
id => 'komreg',
|
||||
manage_user => false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue