Slackbot
06/21/2023, 10:04 AMbastelfreak
06/21/2023, 10:13 AMtest
points to your modules with main branch and when main is updated you want to deploy test
?Moe
06/21/2023, 10:15 AM2023-06-20T17:12:51.351+02:00 DEBUG [qtp1737880586-273] [p.r.m.authentication] Authenticated subject someusername (c910c37b-1a11-4b26-b688-0399703f087d) via authentication token
2023-06-20T17:12:51.352+02:00 DEBUG [qtp1737880586-273] [p.c.core] Validating environment names: main
2023-06-20T17:12:51.491+02:00 INFO [qtp1737880586-273] [p.c.app] Preparing to deploy: main
2023-06-20T17:12:51.491+02:00 INFO [qtp1737880586-273] [p.c.app] Queuing deploy for main
2023-06-20T17:12:51.537+02:00 DEBUG [qtp1737880586-273] [p.c.shell-workers] Execute deploy
2023-06-20T17:12:51.538+02:00 DEBUG [deploy-pool-2-1] [p.c.worker-queue] deploy-pool-2-1 starting to deploy environment 'main' from work queue...
2023-06-20T17:12:51.538+02:00 INFO [deploy-pool-2-1] [p.c.core] Attempting to deploy :environment 'main'...
2023-06-20T17:12:51.538+02:00 DEBUG [deploy-pool-2-1] [p.c.core] Invoking shell: /opt/puppetlabs/bin/r10k deploy --config /opt/puppetlabs/server/data/code-manager/r10k.yaml --verbose warn --cachedir /opt/puppetlabs/server/data/code-manager/worker-caches/deploy-pool-2-1 environment main --modules --incremental
2023-06-20T17:12:51.538+02:00 DEBUG [deploy-pool-2-1] [p.c.core] Shell command will time out after 600 seconds.
2023-06-20T17:12:51.705+02:00 DEBUG [cac4e4c2-e988-41f9-a8ce-f11fd2a77d70_QuartzSchedulerThread] [o.q.s.PropertySettingJobFactory] Producing instance of Job 'SCHEDULER_DEFAULT.1afc9c94c570-c6ec3265-1e52-4f66-8542-2db0fb7b2cad', class=puppetlabs.trapperkeeper.services.scheduler.job
2023-06-20T17:12:51.705+02:00 DEBUG [cac4e4c2-e988-41f9-a8ce-f11fd2a77d70_QuartzSchedulerThread] [o.q.c.QuartzSchedulerThread] batch acquisition of 1 triggers
2023-06-20T17:12:51.705+02:00 DEBUG [cac4e4c2-e988-41f9-a8ce-f11fd2a77d70_Worker-2] [o.q.c.JobRunShell] Calling execute on job SCHEDULER_DEFAULT.1afc9c94c570-c6ec3265-1e52-4f66-8542-2db0fb7b2cad
2023-06-20T17:12:51.706+02:00 DEBUG [cac4e4c2-e988-41f9-a8ce-f11fd2a77d70_QuartzSchedulerThread] [o.q.c.QuartzSchedulerThread] batch acquisition of 1 triggers
2023-06-20T17:12:51.902+02:00 DEBUG [cac4e4c2-e988-41f9-a8ce-f11fd2a77d70_QuartzSchedulerThread] [o.q.s.PropertySettingJobFactory] Producing instance of Job 'SCHEDULER_DEFAULT.1afc9c94c570-8a581e00-fcb6-4257-a22b-bb580e33b654', class=puppetlabs.trapperkeeper.services.scheduler.job
2023-06-20T17:12:51.902+02:00 DEBUG [cac4e4c2-e988-41f9-a8ce-f11fd2a77d70_QuartzSchedulerThread] [o.q.c.QuartzSchedulerThread] batch acquisition of 1 triggers
2023-06-20T17:12:51.902+02:00 DEBUG [cac4e4c2-e988-41f9-a8ce-f11fd2a77d70_Worker-7] [o.q.c.JobRunShell] Calling execute on job SCHEDULER_DEFAULT.1afc9c94c570-8a581e00-fcb6-4257-a22b-bb580e33b654
2023-06-20T17:12:51.902+02:00 DEBUG [cac4e4c2-e988-41f9-a8ce-f11fd2a77d70_QuartzSchedulerThread] [o.q.c.QuartzSchedulerThread] batch acquisition of 1 triggers
2023-06-20T17:12:52.461+02:00 DEBUG [deploy-pool-2-1] [p.c.core] r10k deploy process for environment 'main' completed.
2023-06-20T17:12:52.461+02:00 ERROR [deploy-pool-2-1] [p.c.core] Errors while deploying environment 'main' (exit code: 1):
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/rugged-0.27.7/lib/rugged/repository.rb:258: warning: Using the last argument as keyword parameters is deprecated
ERROR -> Environment(s) 'main' cannot be found in any source and will not be deployed.
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/rugged-0.27.7/lib/rugged/repository.rb:258: warning: Using the last argument as keyword parameters is deprecated
2023-06-20T17:12:52.577+02:00 INFO [deploy-pool-2-1] [p.c.core] Finished deploy attempt for :environment 'main'.
2023-06-20T17:12:52.577+02:00 DEBUG [deploy-pool-2-1] [p.c.worker-queue] deploy-pool-2-1 is ready for new work
2023-06-20T17:12:52.577+02:00 DEBUG [deploy-pool-2-1] [p.c.shell-workers] Execute deploy
2023-06-20T17:12:52.578+02:00 DEBUG [deploy-pool-2-1] [p.c.worker-queue] deploy-pool-2-1 found no work in the queue.
bastelfreak
06/21/2023, 10:17 AMtest
and configure the webhook for all modulesMoe
06/21/2023, 10:17 AMMoe
06/21/2023, 10:19 AMbastelfreak
06/21/2023, 10:19 AMbastelfreak
06/21/2023, 10:19 AMMoe
06/21/2023, 10:20 AMMoe
06/21/2023, 10:21 AMbastelfreak
06/21/2023, 10:21 AMbastelfreak
06/21/2023, 10:21 AMMoe
06/21/2023, 10:23 AMbastelfreak
06/21/2023, 10:27 AMMoe
06/21/2023, 10:27 AMproduction
, nonprod
or test
and your own modules using main
where you can't ever find a way to map this to the given environment. This like a very common setup and I'm baffled this isn't⦠easier?!
Maybe this is just me not fully understanding all the moving parts and how they interact.Moe
06/21/2023, 10:29 AMbastelfreak
06/21/2023, 10:29 AMbastelfreak
06/21/2023, 10:30 AMMoe
06/21/2023, 10:30 AMbastelfreak
06/21/2023, 10:30 AMbastelfreak
06/21/2023, 10:31 AMMoe
06/21/2023, 10:31 AMbastelfreak
06/21/2023, 10:31 AMbastelfreak
06/21/2023, 10:32 AMbastelfreak
06/21/2023, 10:32 AMMoe
06/21/2023, 10:33 AMbastelfreak
06/21/2023, 10:33 AMMoe
06/21/2023, 10:33 AMMoe
06/21/2023, 10:34 AMbastelfreak
06/21/2023, 10:35 AMbastelfreak
06/21/2023, 10:35 AMMoe
06/21/2023, 10:35 AMbastelfreak
06/21/2023, 10:35 AMMoe
06/21/2023, 10:36 AMMoe
06/21/2023, 10:37 AMbastelfreak
06/21/2023, 10:37 AMMoe
06/21/2023, 10:38 AMbastelfreak
06/21/2023, 10:39 AMMoe
06/21/2023, 10:40 AMbastelfreak
06/21/2023, 10:41 AMMoe
06/21/2023, 10:43 AMMoe
06/21/2023, 10:44 AMbastelfreak
06/21/2023, 10:45 AMMoe
06/21/2023, 10:57 AMso you want to create with feature branches in your modules? and create a new temporary branch in the control-repo that maps to it?Ah, sorry one more Q: Do you know of documentation or info on how to build this? Is there some blog where I could read?
bastelfreak
06/21/2023, 10:59 AM# Track control branch and fall-back to master if no matching branch.
mod 'hieradata',
:git => '<mailto:git@git.example.com|git@git.example.com>:organization/hieradata.git',
:branch => :control_branch,
:default_branch => 'main'
do something like that for all your modulesbastelfreak
06/21/2023, 11:00 AMmain
will be deployedbastelfreak
06/21/2023, 11:00 AMMoe
06/21/2023, 11:06 AMMoe
06/21/2023, 11:10 AM:branch => :control_branch,
will be the name of the feature branch for that module then?bastelfreak
06/21/2023, 11:12 AM:control_branch
is a pointer to the current environment name/branch name in the control repoMoe
06/21/2023, 11:13 AMbastelfreak
06/21/2023, 11:13 AMMoe
06/21/2023, 11:14 AMbastelfreak
06/21/2023, 11:15 AM