File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 5959 Optional[String] $stagingdir = undef ,
6060 Enum[direct,bolthost] $download_mode = ' bolthost' ,
6161 Boolean $permit_unsafe_versions = false ,
62+ String $token_lifetime = ' 1y' ,
6263) {
6364 peadm::assert_supported_bolt_version()
6465
9697 stagingdir => $stagingdir ,
9798 download_mode => $download_mode ,
9899 permit_unsafe_versions => $permit_unsafe_versions ,
100+ token_lifetime => $token_lifetime ,
99101 )
100102
101103 $configure_result = run_plan(' peadm::subplans::configure' ,
Original file line number Diff line number Diff line change 5858 String $stagingdir = ' /tmp' ,
5959 Enum[direct,bolthost] $download_mode = ' bolthost' ,
6060 Boolean $permit_unsafe_versions = false ,
61+ String $token_lifetime = ' 1y' ,
6162) {
6263 peadm::assert_supported_pe_version($version , $permit_unsafe_versions )
6364
325326 run_command(' systemctl stop pe-puppetdb' , $primary_target )
326327 run_command(' systemctl start pe-puppetdb' , $primary_target )
327328 run_task(' peadm::rbac_token' , $primary_target ,
328- password => $console_password ,
329+ password => $console_password ,
330+ token_lifetime => $token_lifetime ,
329331 )
330332
331333 # Stub a production environment and commit it to file-sync. At least one
Original file line number Diff line number Diff line change 44 "password" : {
55 "type" : " String" ,
66 "description" : " The password for the admin user"
7+ },
8+ "token_lifetime" : {
9+ "type" : " String" ,
10+ "description" : " The duration for which a token will be valid. Format <integer>[smhdy]"
711 }
812 },
913 "input_method" : " stdin" ,
Original file line number Diff line number Diff line change 1717body = {
1818 'login' => 'admin' ,
1919 'password' => $params[ 'password' ] ,
20- 'lifetime' => '1y' ,
20+ 'lifetime' => $params [ 'token_lifetime' ] ,
2121 'label' => 'provision-time token' ,
2222} . to_json
2323
You can’t perform that action at this time.
0 commit comments