coder / modules

A collection of Terraform Modules to work with Coder.
https://registry.coder.com
Apache License 2.0
23 stars 20 forks source link

feat: allow execution ordering of coder modules #93

Open djarbz opened 8 months ago

djarbz commented 8 months ago

How can we specify the order in which modules run?

For example, I want the Personalize module to run after my Dotfiles have been fully cloned as I have a personalization script in my dotfiles.

matifali commented 8 months ago

Both of these modules make use of coder_script resource. So that needs to support the order first.

djarbz commented 8 months ago

Ok, do I need to open an issue elsewhere?

matifali commented 8 months ago

@djarbz A linked issue is created on the coder/coder repo. https://github.com/coder/coder/issues/10352

michaelbrewer commented 1 month ago

@matifali could there at least be an option for an initial script to run from the main agent, like a init_script that can do some things ahead of any other scripts. Like copying some resources, that can later on be referenced?