Update placeholderplaceholderplaceholder occurrences to our doc site (#684)

This commit is contained in:
Elbaz 2023-10-10 12:54:03 +03:00 committed by GitHub
parent 3860a486b1
commit 01cf4cda3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 36 additions and 44 deletions

View File

@ -380,7 +380,7 @@ func (b *Backend) Configure(obj cty.Value) tfdiags.Diagnostics {
AssumeRoleExternalID: stringAttr(obj, "external_id"),
AssumeRolePolicy: stringAttr(obj, "assume_role_policy"),
AssumeRoleSessionName: stringAttr(obj, "session_name"),
CallerDocumentationURL: "https://www.placeholderplaceholderplaceholder.io/docs/language/settings/backends/s3.html",
CallerDocumentationURL: "https://opentofu.org/docs/language/settings/backends/s3/",
CallerName: "S3 Backend",
CredsFilename: stringAttr(obj, "shared_credentials_file"),
DebugLogging: logging.IsDebugOrHigher(),

View File

@ -14,10 +14,6 @@ import (
"github.com/opentofu/opentofu/internal/plans"
)
// The tests in this file run through different scenarios recommended in our
// "Running Terraform in Automation" guide:
// https://www.placeholderplaceholderplaceholder.io/guides/running-terraform-in-automation.html
// TestPlanApplyInAutomation runs through the "main case" of init, plan, apply
// using the specific command line options suggested in the guide.
func TestPlanApplyInAutomation(t *testing.T) {

View File

@ -345,7 +345,7 @@ func (c *ImportCommand) Synopsis() string {
}
const importCommandInvalidAddressReference = `For information on valid syntax, see:
https://www.placeholderplaceholderplaceholder.io/docs/cli/state/resource-addressing.html`
https://opentofu.org/docs/cli/state/resource-addressing/`
const importCommandMissingResourceFmt = `[reset][bold][red]Error:[reset][bold] resource address %q does not exist in the configuration.[reset]

View File

@ -868,7 +868,7 @@ func (c *InitCommand) getProviders(ctx context.Context, config *configs.Config,
if thirdPartySigned {
c.Ui.Info(fmt.Sprintf("\nProviders are signed by their developers.\n" +
"If you'd like to know more about provider signing, you can read about it here:\n" +
"https://www.placeholderplaceholderplaceholder.io/docs/cli/plugins/signing.html"))
"https://opentofu.org/docs/cli/plugins/signing/"))
}
},
}

View File

@ -981,8 +981,6 @@ the error above and try again.
const errTFCMigrateNotYetImplemented = `
Migrating state from Terraform Cloud to another backend is not yet implemented.
Please use the API to do this: https://www.placeholderplaceholderplaceholder.io/docs/cloud/api/state-versions.html
`
const errInteractiveInputDisabled = `
@ -1005,8 +1003,6 @@ configuration (e.g. production, staging, development), Terraform Cloud workspace
across all configurations used within an organization. A typical strategy to start with is
<COMPONENT>-<ENVIRONMENT>-<REGION> (e.g. networking-prod-us-east, networking-staging-us-east).
For more information on workspace naming, see https://www.placeholderplaceholderplaceholder.io/docs/cloud/workspaces/naming.html
When migrating existing workspaces from the backend %[1]q to Terraform Cloud, would you like to
rename your workspaces? Enter 1 or 2.

View File

@ -96,7 +96,7 @@ func (r *ResourceAddress) String() string {
// HasResourceSpec returns true if the address has a resource spec, as
// defined in the documentation:
//
// https://www.placeholderplaceholderplaceholder.io/docs/cli/state/resource-addressing.html
// https://opentofu.org/docs/cli/state/resource-addressing/
//
// In particular, this returns false if the address contains only
// a module path, thus addressing the entire module.

View File

@ -2018,7 +2018,7 @@ func TestEnsureProviderVersions(t *testing.T) {
beepProvider: getproviders.MustParseVersionConstraints(">= 1.0.0"),
},
WantErr: `some providers could not be installed:
- example.com/foo/beep: the local package for example.com/foo/beep 1.0.0 doesn't match any of the checksums previously recorded in the dependency lock file (this might be because the available checksums are for packages targeting different platforms); for more information: https://www.placeholderplaceholderplaceholder.io/language/provider-checksum-verification`,
- example.com/foo/beep: the local package for example.com/foo/beep 1.0.0 doesn't match any of the checksums previously recorded in the dependency lock file (this might be because the available checksums are for packages targeting different platforms); for more information: https://opentofu.org/docs/language/files/dependency-lock/#checksum-verification`,
WantEvents: func(inst *Installer, dir *Dir) map[addrs.Provider][]*testInstallerEventLogItem {
return map[addrs.Provider][]*testInstallerEventLogItem{
noProvider: {
@ -2064,7 +2064,7 @@ func TestEnsureProviderVersions(t *testing.T) {
Error string
}{
"1.0.0",
`the local package for example.com/foo/beep 1.0.0 doesn't match any of the checksums previously recorded in the dependency lock file (this might be because the available checksums are for packages targeting different platforms); for more information: https://www.placeholderplaceholderplaceholder.io/language/provider-checksum-verification`,
`the local package for example.com/foo/beep 1.0.0 doesn't match any of the checksums previously recorded in the dependency lock file (this might be because the available checksums are for packages targeting different platforms); for more information: https://opentofu.org/docs/language/files/dependency-lock/#checksum-verification`,
},
},
},

View File

@ -119,7 +119,7 @@ func installFromLocalArchive(ctx context.Context, meta getproviders.PackageMeta,
)
} else if !matches {
return authResult, fmt.Errorf(
"the current package for %s %s doesn't match any of the checksums previously recorded in the dependency lock file; for more information: https://www.placeholderplaceholderplaceholder.io/language/provider-checksum-verification",
"the current package for %s %s doesn't match any of the checksums previously recorded in the dependency lock file; for more information: https://opentofu.org/docs/language/files/dependency-lock/#checksum-verification",
meta.Provider, meta.Version,
)
}
@ -209,7 +209,7 @@ func installFromLocalDir(ctx context.Context, meta getproviders.PackageMeta, tar
)
} else if !matches {
return authResult, fmt.Errorf(
"the local package for %s %s doesn't match any of the checksums previously recorded in the dependency lock file (this might be because the available checksums are for packages targeting different platforms); for more information: https://www.placeholderplaceholderplaceholder.io/language/provider-checksum-verification",
"the local package for %s %s doesn't match any of the checksums previously recorded in the dependency lock file (this might be because the available checksums are for packages targeting different platforms); for more information: https://opentofu.org/docs/language/files/dependency-lock/#checksum-verification",
meta.Provider, meta.Version,
)
}

View File

@ -29,7 +29,7 @@ Basic usage, with security information shown if relevant:
$ tofu version
OpenTofu v1.6.0
on darwin_amd64
+ provider registry.terraform.io/hashicorp/null v3.0.0
+ provider registry.opentofu.org/hashicorp/null v3.0.0
```
As JSON:
@ -37,10 +37,10 @@ As JSON:
```shellsession
$ tofu version -json
{
"terraform_version": "0.15.0",
"terraform_version": "0.16.0-alpha2",
"platform": "darwin_amd64",
"provider_selections": {
"registry.terraform.io/hashicorp/null": "3.0.0"
"registry.opentofu.org/hashicorp/null": "3.0.0"
}
}
```

View File

@ -74,7 +74,7 @@ When interacting with OpenTofu-specific network services, OpenTofu expects
to find API tokens in CLI configuration files in `credentials` blocks:
```hcl
credentials "app.placeholderplaceholderplaceholder.io" {
credentials "app.opentofu.org" {
token = "xxxxxx.atlasv1.zzzzzzzzzzzzz"
}
```
@ -97,8 +97,8 @@ sources and/or backend configuration.
If you would prefer not to store your API tokens directly in the CLI configuration, you may use
a host-specific environment variable. Environment variable names should have the prefix
`TF_TOKEN_` added to the domain name, with periods encoded as underscores. For example, the
value of a variable named `TF_TOKEN_app_placeholderplaceholderplaceholder_io` will be used as a bearer authorization
token when the CLI makes service requests to the hostname `app.placeholderplaceholderplaceholder.io`.
value of a variable named `TF_TOKEN_app_opentofu_org` will be used as a bearer authorization
token when the CLI makes service requests to the hostname `app.opentofu.org`.
You must convert domain names containing non-ASCII characters to their [punycode equivalent](https://www.charset.org/punycode)
with an ACE prefix. For example, token credentials for 例えば.com must be set in a variable

View File

@ -17,13 +17,13 @@ The following example loads the website and validates that it returns the expect
```hcl
check "health_check" {
data "http" "placeholderplaceholderplaceholder_io" {
url = "https://www.placeholderplaceholderplaceholder.io"
data "http" "opentofu_org" {
url = "https://www.opentofu.org"
}
assert {
condition = data.http.placeholderplaceholderplaceholder_io.status_code == 200
error_message = "${data.http.placeholderplaceholderplaceholder_io.url} returned an unhealthy status code"
condition = data.http.opentofu_org.status_code == 200
error_message = "${data.http.opentofu_org.url} returned an unhealthy status code"
}
}
```
@ -34,7 +34,7 @@ You can use any data source from any provider as a scoped data source within a `
A `check` block can optionally contain a nested (a.k.a. scoped) data source. This `data` block behaves like an external [data source](/docs/language/data-sources), except you can not reference it outside its enclosing `check` block. Additionally, if a scoped data source's provider raises any errors, they are masked as warnings and do not prevent OpenTofu from continuing operation execution.
You can use a scoped data source to validate the status of a piece of infrastructure outside of the usual OpenTofu resource lifecycle. [In the above example](#syntax), if the `placeholderplaceholderplaceholder_io` data source fails to load, you receive a warning instead of a blocking error, which would occur if you declared this data source outside of a `check` block.
You can use a scoped data source to validate the status of a piece of infrastructure outside of the usual OpenTofu resource lifecycle. [In the above example](#syntax), if the `opentofu_org` data source fails to load, you receive a warning instead of a blocking error, which would occur if you declared this data source outside of a `check` block.
#### Meta-Arguments
@ -95,8 +95,8 @@ You can often use postconditions interchangeably with check blocks to validate r
For example, you can [rewrite the above `check` block example](#syntax) to use a postcondition instead. The below code uses a `postcondition` block to validate that the website returns the expected status code of `200`.
```hcl
data "http" "placeholderplaceholderplaceholder_io" {
url = "https://www.placeholderplaceholderplaceholder.io"
data "http" "opentofu_org" {
url = "https://www.opentofu.org"
lifecycle {
postcondition {

View File

@ -212,13 +212,13 @@ The following example uses a check block with an assertion to verify the OpenTof
```hcl
check "health_check" {
data "http" "placeholderplaceholderplaceholder_io" {
url = "https://www.placeholderplaceholderplaceholder.io"
data "http" "opentofu_org" {
url = "https://www.opentofu.org"
}
assert {
condition = data.http.placeholderplaceholderplaceholder_io.status_code == 200
error_message = "${data.http.placeholderplaceholderplaceholder_io.url} returned an unhealthy status code"
condition = data.http.opentofu_org.status_code == 200
error_message = "${data.http.opentofu_org.url} returned an unhealthy status code"
}
}
```

View File

@ -34,14 +34,14 @@ The `plantimestamp` function is not available within the OpenTofu console.
```
```hcl
check "placeholderplaceholderplaceholder_io_certificate" {
data "tls_certificate" "placeholderplaceholderplaceholder_io" {
url = "https://www.placeholderplaceholderplaceholder.io/"
check "opentofu_org_certificate" {
data "tls_certificate" "opentofu_org" {
url = "https://www.opentofu.org/"
}
assert {
condition = timecmp(plantimestamp(), data.tls_certificate.placeholderplaceholderplaceholder_io.certificates[0].not_after) < 0
error_message = "placeholderplaceholderplaceholder.io certificate has expired"
condition = timecmp(plantimestamp(), data.tls_certificate.opentofu_org.certificates[0].not_after) < 0
error_message = "opentofu.org certificate has expired"
}
}
```

View File

@ -40,11 +40,11 @@ Use the namespace keywords where possible, to make the intent more obvious to
a future reader:
```
> uuidv5("dns", "www.placeholderplaceholderplaceholder.io")
a5008fae-b28c-5ba5-96cd-82b4c53552d6
> uuidv5("dns", "www.opentofu.org")
df1e675d-b743-5f6c-9952-6311d0f141df
> uuidv5("url", "https://www.placeholderplaceholderplaceholder.io/")
9db6f67c-dd95-5ea0-aa5b-e70e5c5f7cf5
> uuidv5("url", "https://www.opentofu.org/")
ace93eea-1a2c-5eed-b41b-718be15d2e50
> uuidv5("oid", "1.3.6.1.4")
af9d40a5-7a36-5c07-b23a-851cd99fbfa5
@ -58,8 +58,8 @@ UUIDs, and in some special cases it may be more appropriate to use the
UUID form:
```
> uuidv5("6ba7b810-9dad-11d1-80b4-00c04fd430c8", "www.placeholderplaceholderplaceholder.io")
a5008fae-b28c-5ba5-96cd-82b4c53552d6
> uuidv5("6ba7b810-9dad-11d1-80b4-00c04fd430c8", "www.opentofu.org")
df1e675d-b743-5f6c-9952-6311d0f141df
```
If you wish to use a namespace defined outside of RFC 4122, using the namespace