Skip to content
Snippets Groups Projects
Commit c9cb91d0 authored by Filip Strömbäck's avatar Filip Strömbäck
Browse files

Updated tal-cli to use vcsrepo.

parent 3aa9aa2f
No related branches found
No related tags found
2 merge requests!50Fix: Puppet Defining "data_provider": "hiera" in metadata.json is deprecated....,!40Merge from devel. Commits related to RHEL9 upgrade and pdk cleanup.
Pipeline #101993 passed
# @summary
# Describe what this class do!
# Command-line interface to TAL.
#
# Detailed summary info if suitable
# Clones and compiles repo to provide TAL access.
#
#
# @param credentials
# Describe credentials
# Credentials for TAL access.
#
class aes::tal_cli (
Optional[String] $credentials = undef
......@@ -49,12 +49,26 @@ class aes::tal_cli (
source => "puppet:///modules/${module_name}/tal/on_update.sh",
}
exec { 'update-tal-repo' :
command => '/opt/utils/update_repo.sh /home/examadm/tal-cli/source https://oauth2:glpat-bfpVssm_zFmt1YRW7cLz@gitlab.liu.se/upp-aes/tal-cli.git master',
environment => ['REPO_ON_UPDATE=/home/examadm/tal-cli/on_update.sh'],
vcsrepo { '/home/examadm/tal-cli/source':
submodules => false,
ensure => latest,
provider => git,
source => 'https://oauth2:glpat-bfpVssm_zFmt1YRW7cLz@gitlab.liu.se/upp-aes/tal-cli.git',
revision => master,
owner => examadm,
group => examadm,
notify => Exec['compile-tal-repo'],
}
exec { 'compile-tal-repo':
user => examadm,
group => examadm,
cwd => '/home/examadm/tal-cli',
path => '/bin:/usr/bin',
environment => ['HOME=/home/examadm/tal-cli'],
creates => '/home/examadm/tal-cli/source/tal',
command => '/home/examadm/tal-cli/on_update.sh',
require => File['/home/examadm/tal-cli/on_update.sh'],
}
file { '/etc/cron.daily/tal-remind' :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment