mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
23 lines
844 B
Text
23 lines
844 B
Text
athame-testing = {
|
|
provider = "hcloud";
|
|
type = "server";
|
|
inputs = {
|
|
name = "athame-testing";
|
|
image = "ubuntu-20.04";
|
|
server_type = "cpx21";
|
|
location = "nbg1";
|
|
backups = false;
|
|
ssh_keys = [ (hcloud_ssh_key.refAttr "id") ];
|
|
};
|
|
connection = { host = config.lib.tf.terraformSelf "ipv4_address"; };
|
|
provisioners = [
|
|
{
|
|
remote-exec.command =
|
|
"curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NO_REBOOT=true PROVIDER=hetznercloud NIX_CHANNEL=nixos-20.09 bash 2>&1 | tee /tmp/infect.log";
|
|
}
|
|
{
|
|
remote-exec.command = "reboot";
|
|
onFailure = "continue";
|
|
}
|
|
];
|
|
};
|