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

Commit c8f4359

Browse files
committed
Allow github token to be retrieved from a deferred function
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.
1 parent 7c1e1bb commit c8f4359

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

manifests/instance.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
mode => '0755',
132132
owner => $user,
133133
group => $group,
134-
content => epp('github_actions_runner/configure_install_runner.sh.epp', {
134+
content => stdlib::deferrable_epp('github_actions_runner/configure_install_runner.sh.epp', {
135135
personal_access_token => $personal_access_token,
136136
token_url => $token_url,
137137
instance_name => $instance_name,

metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": [
1111
{
1212
"name": "puppetlabs-stdlib",
13-
"version_requirement": ">= 1.0.0 < 7.0.0"
13+
"version_requirement": ">= 8.4.0 < 10.0.0"
1414
},
1515
{
1616
"name": "camptocamp/systemd",

templates/configure_install_runner.sh.epp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%- | String $personal_access_token,
22
String $token_url,
33
String $instance_name,
4-
Stdlib::Absolutepath $root_dir,
4+
String $root_dir,
55
String $url,
66
String $hostname,
77
String $assured_labels,

0 commit comments

Comments
 (0)