Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Add Example Of Network Data #99

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions docs/resources/cloudinit_secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: |-

```terraform
resource "harvester_cloudinit_secret" "cloud-config-opensuse154" {
name = "cloud-config-opensuse154"
name = "cloud-config-opensuse156"
namespace = "default"

depends_on = [
Expand All @@ -39,7 +39,15 @@ resource "harvester_cloudinit_secret" "cloud-config-opensuse154" {
- >-
public_key content of harvester_ssh_key.mysshkey
EOF
network_data = ""
network_data = <<-EOF
network:
version: 2
ethernets:
eth0:
dhcp4: true
nameservers:
addresses: [8.8.8.8,8.8.4.4,1.1.1.1]
EOF
}

resource "harvester_cloudinit_secret" "cloud-config-ubuntu20" {
Expand All @@ -60,8 +68,16 @@ resource "harvester_cloudinit_secret" "cloud-config-ubuntu20" {
- enable
- '--now'
- qemu-guest-agent
EOF
network_data = <<-EOF
network:
version: 2
ethernets:
enp1s0:
dhcp4: true
nameservers:
addresses: [8.8.8.8,8.8.4.4,1.1.1.1]
EOF
network_data = ""
}
```

Expand Down