Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
aes
Commits
c9cb91d0
Commit
c9cb91d0
authored
1 year ago
by
Filip Strömbäck
Browse files
Options
Downloads
Patches
Plain Diff
Updated tal-cli to use vcsrepo.
parent
3aa9aa2f
No related branches found
No related tags found
2 merge requests
!50
Fix: Puppet Defining "data_provider": "hiera" in metadata.json is deprecated....
,
!40
Merge from devel. Commits related to RHEL9 upgrade and pdk cleanup.
Pipeline
#101993
passed
1 year ago
Stage: puppet
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/tal_cli.pp
+20
-6
20 additions, 6 deletions
manifests/tal_cli.pp
with
20 additions
and
6 deletions
manifests/tal_cli.pp
+
20
−
6
View file @
c9cb91d0
# @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'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment