feat: add group and batch patching#255
Conversation
722cdc2 to
de626de
Compare
|
I marked it backwards-incompatible because i do a Type change wich changes the behavior. |
|
health check task is missing |
0fa314d to
c4ba946
Compare
|
i'm going to work a lot on this, so maybe wait with review a bit |
|
need to do a proper voxpupuli release of this module first to get the tests working again |
|
will rebase and squash. got quite some commits together XD |
ef3b41a to
223e15b
Compare
|
code works in my tests now. i think i'm ready for review again. tests are all read, because it cannot find the voxpupuli version of this module in the forge. this is because we didn't do a release yet. see #258 |
$ bolt plan run os_patching::patch_group group=patching01 batch_size=2
Starting: plan os_patching::patch_group
patch_group.pp: Patching group: patching01
patch_group.pp: Targets in group: [student1.priv.rw.betadots.training, student3.priv.rw.betadots.training, student2.priv.rw.betadots.training, puppet.priv.rw.betadots.training]
patch_group.pp: Patching in batches is true
patch_group.pp: Patching in batches of size: 2
patch_group.pp: Patching batches created: [[student1.priv.rw.betadots.training, student3.priv.rw.betadots.training], [student2.priv.rw.betadots.training, puppet.priv.rw.betadots.training]]
Starting: plan os_patching::patch_batch
patch_batch.pp: Patching batch of nodes: [student1.priv.rw.betadots.training, student3.priv.rw.betadots.training]
patch_batch.pp: Health check is true.
patch_batch.pp: Running health check before patching
Starting: task puppet_health_check::agent_health on student1.priv.rw.betadots.training, student3.priv.rw.betadots.training
Finished: task puppet_health_check::agent_health with 0 failures in 7.28 sec
Starting: task os_patching::patch_server on student1.priv.rw.betadots.training, student3.priv.rw.betadots.training
Finished: task os_patching::patch_server with 0 failures in 15.0 sec
Finished: plan os_patching::patch_batch in 22.3 sec
Starting: plan os_patching::patch_batch
patch_batch.pp: Patching batch of nodes: [student2.priv.rw.betadots.training, puppet.priv.rw.betadots.training]
patch_batch.pp: Health check is true.
patch_batch.pp: Running health check before patching
Starting: task puppet_health_check::agent_health on student2.priv.rw.betadots.training, puppet.priv.rw.betadots.training
Finished: task puppet_health_check::agent_health with 2 failures in 11.57 sec
Finished: plan os_patching::patch_batch in 11.57 sec
Finished: plan os_patching::patch_group in 34.01 sec
{
"targets": [
"student1.priv.rw.betadots.training",
"student3.priv.rw.betadots.training",
"student2.priv.rw.betadots.training",
"puppet.priv.rw.betadots.training"
],
"patched": [
"student1.priv.rw.betadots.training",
"student3.priv.rw.betadots.training"
],
"failed": [],
"skipped": [
"student2.priv.rw.betadots.training",
"puppet.priv.rw.betadots.training"
],
"health_check": true
} |
223e15b to
ed9d721
Compare
|
don't know why tests fail. they try to pull in v1.0.0-rc0 of the module instead of the released v1.0.0 🤷 |
|
okay, beaker packageing v1.0.0-rc0 and should be able to install it into the instance. but it doesn't work :( |
ed9d721 to
0355e70
Compare
|
okay, puppet-puppet_health_check is not yet released and maybe merged into another module. so the dependency in the metadata.json is removed for now |
Extend patching plans
Extend patching fact