Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Allow github token to be retrieved from a deferred function
Browse files Browse the repository at this point in the history
This allows you to

```
class{'github_actions_runner':
  personal_access_token => Deferred('secret::get',['poc']),
}
```

for the existing case where a string is used the module will operate in
the same way.
  • Loading branch information
traylenator committed Jun 29, 2023
1 parent 7c1e1bb commit e172c80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
mode => '0755',
owner => $user,
group => $group,
content => epp('github_actions_runner/configure_install_runner.sh.epp', {
content => deferrable_epp('github_actions_runner/configure_install_runner.sh.epp', {
personal_access_token => $personal_access_token,
token_url => $token_url,
instance_name => $instance_name,
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": [
{
"name": "puppetlabs-stdlib",
"version_requirement": ">= 1.0.0 < 7.0.0"
"version_requirement": ">= 8.4.0 < 10.0.0"
},
{
"name": "camptocamp/systemd",
Expand Down

0 comments on commit e172c80

Please sign in to comment.