-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from hmlanigan/base-in-machine-app
Base for machine resource
- Loading branch information
Showing
7 changed files
with
170 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ A resource that represents a Juju machine deployment. Refer to the juju add-mach | |
```terraform | ||
resource "juju_machine" "this_machine" { | ||
model = juju_model.development.name | ||
series = "focal" | ||
base = "[email protected]" | ||
name = "this_machine" | ||
constraints = "tags=my-machine-tag" | ||
} | ||
|
@@ -30,12 +30,13 @@ resource "juju_machine" "this_machine" { | |
|
||
### Optional | ||
|
||
- `base` (String) The operating system series to install on the new machine(s). | ||
- `constraints` (String) Machine constraints that overwrite those available from 'juju get-model-constraints' and provider's defaults. | ||
- `disks` (String) Storage constraints for disks to attach to the machine(s). | ||
- `name` (String) A name for the machine resource in Terraform. | ||
- `private_key_file` (String) The file path to read the private key from. | ||
- `public_key_file` (String) The file path to read the public key from. | ||
- `series` (String) The operating system series to install on the new machine(s). | ||
- `series` (String, Deprecated) The operating system series to install on the new machine(s). | ||
- `ssh_address` (String) The user@host directive for manual provisioning an existing machine via ssh. Requires public_key_file & private_key_file arguments. | ||
|
||
### Read-Only | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
resource "juju_machine" "this_machine" { | ||
model = juju_model.development.name | ||
series = "focal" | ||
base = "[email protected]" | ||
name = "this_machine" | ||
constraints = "tags=my-machine-tag" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.