Skip to content

Commit

Permalink
add host link agent argument and example. Fixed RHEL7 repos to RHEL8
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Kanz committed Dec 6, 2023
1 parent 39bc5bd commit 6d8e06c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions website/docs/d/satellite_attach_host_script.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ data "ibm_satellite_attach_host_script" "script" {
}
```

### Sample to read satellite host script to attach AWS EC2 host to Satellite control plane
### Sample to read satellite host script to attach AWS EC2 host to Satellite control plane and uses reduced firewall requirements.

```terraform
data "ibm_satellite_attach_host_script" "script" {
location = var.location
labels = var.labels
script_dir = "/tmp"
host_provider = "aws"
location = var.location
labels = var.labels
script_dir = "/tmp"
host_provider = "aws"
host_link_agent_endpoint = "c-01-ws.us-south.link.satellite.cloud.ibm.com"
}
```
### Sample to read satellite host script to attach IBM host to Satellite control plane
Expand All @@ -38,11 +39,11 @@ data "ibm_satellite_attach_host_script" "script" {
location = var.location
custom_script = <<EOF
subscription-manager refresh
subscription-manager repos --enable rhel-server-rhscl-7-rpms
subscription-manager repos --enable rhel-7-server-optional-rpms
subscription-manager repos --enable rhel-7-server-rh-common-rpms
subscription-manager repos --enable rhel-7-server-supplementary-rpms
subscription-manager repos --enable rhel-7-server-extras-rpms
subscription-manager release --set=8
subscription-manager repos --enable rhel-8-for-x86_64-baseos-rpms
subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms
subscription-manager repos --disable='*eus*'
yum install container-selinux -y
EOF
}
Expand All @@ -57,6 +58,7 @@ Review the argument references that you can specify for your data source.
- `host_provider` - (Optional, String) The name of host provider, such as `ibm`, `aws` or `azure`.
- `labels` - (Optional, Set(Strings)) The set of key-value pairs to label the host, such as `["cpu:4"]` to describe the host capabilities.
- `script_dir` - (Optional, String) The directory path to store the generated script.
- `host_link_agent_endpoint` - (Optional, String) The endpoint that the link agent uses to connect to the link tunnel server. Required for reduced firewall support.

## Attributes reference
In addition to the argument reference list, you can access the following attribute reference after your resource is created.
Expand Down

0 comments on commit 6d8e06c

Please sign in to comment.