diff --git a/Documentation/dev/libvirt-howto.md b/Documentation/dev/libvirt-howto.md index 5b6a087a93b..261bfbb0879 100644 --- a/Documentation/dev/libvirt-howto.md +++ b/Documentation/dev/libvirt-howto.md @@ -64,7 +64,7 @@ EOF 1. Set the `imagePath` to the **absolute** path of the operating system image you downloaded 1. Set the `name` (e.g. test1) 1. Look at the `podCIDR` and `serviceCIDR` fields in the `networking` section. Make sure they don't conflict with anything important. - 1. Set the `pullSecretPath` to the **absolute** path of your downloaded pull secret file. + 1. Set the `pullSecret` to your JSON pull secret. #### 1.7 Set up NetworkManager DNS overlay This step is optional, but useful for being able to resolve cluster-internal hostnames from your host. diff --git a/config.tf b/config.tf index 6c0559c63b0..5b881a35529 100644 --- a/config.tf +++ b/config.tf @@ -174,12 +174,12 @@ Note: This field MUST be set manually prior to creating the cluster. EOF } -variable "tectonic_pull_secret_path" { +variable "tectonic_pull_secret" { type = "string" default = "" description = <"${CLUSTER_NAME}.yaml" with open(os.path.expanduser(os.path.join('~', '.ssh', 'id_rsa.pub'))) as f: config['admin']['sshKey'] = f.read() config['baseDomain'] = '${DOMAIN}' - config['pullSecretPath'] = '${PULL_SECRET_PATH}' + with open('${PULL_SECRET_PATH}') as f: + config['pullSecret'] = f.read() config['aws']['region'] = '${AWS_REGION}' config['aws']['extraTags'] = { 'expirationDate': (