You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modules should be reusable as the base of new projects: terraform init --from-module=packet/openshift/packet packet-openshift
And modules should allow for reuse as dependencies in more complex projects:
module "openshift" {
source = "packet/openshift/packet"
version = "0.1.0"
packet_token = "..."
...
}
provider "kubernetes" {
config_path = module.openshift.kube_config
// this does not exist, but it could be a new output ${abspath(path.root)}/auth/kubeconfig (maybe path.module)
}
Ensure paths are module safe (path.module + “/assets/foo.sh“)
Ensure that all variables and outputs have a description
Ensure that the README.md is present and in good shape (mentions module install and use)
All sub-modules must also adhere to the previous four bullets as if they were root modules
Include examples/ showing how to use this project as a module
Rename the project (terraform-packet-openshift) (or terraform-packet-redhat-openshift) (github automatically redirects visitors and git users using the old name)
Tag the project
Publish the project: registry.terraform.io/sign-in
The text was updated successfully, but these errors were encountered:
The repo is private until I have merged in the PR that incorporates many of these changes. (I don't want users to stumble upon a Packet provider in the Equinix repo until it is ready to be used on Metal).
In order for users to more rapidly take advantage of this Terraform configuration, it should be packaged as a Terraform module (or set of modules).
https://www.terraform.io/docs/modules/publish.html
https://www.terraform.io/docs/registry/modules/publish.html
The modules should fit the best practices: https://www.terraform.io/docs/modules/index.html
https://registry.terraform.io/browse/modules?provider=packet
Modules should be reusable as the base of new projects:
terraform init --from-module=packet/openshift/packet packet-openshift
And modules should allow for reuse as dependencies in more complex projects:
Steps to publish:
The text was updated successfully, but these errors were encountered: