Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

gac: split deployments/configurator.nix #601

Closed
wants to merge 1 commit into from

Conversation

kaii-zen
Copy link
Contributor

into deployments/gac/{configurator,common-aws}.nix.

To maintain backward-compatibility I put a placeholder in the original
path (deployments/configurator.nix) that requires the two new files
and emits a deprecation warning.

This is generally needed for supporting providers other than AWS.

Fixes #599

};

resources.ec2SecurityGroups = {
"allow-deployer-ssh-${config.node.region}-${config.node.org}" = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the latest changes in the master branch, you can also do:
require = [ ./security-groups/allow-deployer-ssh.nix ];
but that relies on io having done nixops set-args --arg globals 'import ./globals.nix ....'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do some gymnastics to get around io's globals but wouldn't it just make things more difficult to reason about? @deepfire thoughts?

into `deployments/gac/{configurator,common-aws}.nix`.

To maintain backward-compatibility I put a placeholder in the original
path (`deployments/configurator.nix`) that `require`s the two new files
and emits a deprecation warning.

This is generally needed for supporting providers other than AWS.

Fixes #599
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gac: deployments/configurator.nix has AWS-specific code in it
3 participants