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

provider/softlayer: Implement softlayer_user Resource #46

Closed
9 of 10 tasks
danielcbright opened this issue May 16, 2016 · 4 comments
Closed
9 of 10 tasks

provider/softlayer: Implement softlayer_user Resource #46

danielcbright opened this issue May 16, 2016 · 4 comments

Comments

@danielcbright
Copy link

danielcbright commented May 16, 2016

Implement Resource: softlayer_user

This issue will track the completion of the user resource type requirement for the SoftLayer Provisioner.

Tracking Checklist

  • Gather all resource requirements for this resource from SUN, compare with existing AWS TF configurations and create an example configuration in the description of this issue.
  • Implement Resource Arguments defined in the example configuration provided in this issue.
  • Implement any required changes to the softlayer-go API, including enhancements and tests. Please follow all contribution guidelines listed in the main README, all updates should be made via PR to https://github.com/TheWeatherCompany/softlayer-go which will be code-reviewed and then merged, changes will eventually be merged upstream.
  • Create acceptance tests following the TF Acceptance Test Guidelines. The AWS provider has good examples of acceptance tests.
  • Open PR and code-review for the Terraform coding.
  • Perform QA testing of the code, basically make sure it does what it's meant to do.
  • Update the website documentation for the SoftLayer Provider following the instructions in the Terraform Website tree.
  • When all other required resources are completed, perform UAT testing of the complete suite of resources.
  • Fix any "show-stopper" bugs that come up as a result of UAT testing, update documentation as needed.
  • Once UAT testing is complete and it is accepted, create a PR to Hashicorp and close this issue.

Example Terraform Configuration:

resource "softlayer_user" "joe" {
    username = "joedoe"
    first_name = "Joe"
    last_name = "Doe"
    email = "joe@doe.com"
    company_name = "Comp Inc"
    address1 = "..."
    address2 = "..."
    city = "Atlanta"
    state = "GA"
    country = "US"
    timezone = 114
    user_status = 1001

    permissions = [
        'SERVER_ADD',
        'SERVER_CANCEL',
        'RESET_PORTAL_PASSWORD',
        ...,
    ]
}
@renier
Copy link
Collaborator

renier commented May 27, 2016

Updated issue description:

We have to create users with generated api keys and a set of permissions:

resource "softlayer_user" "joe" {
    username = "joedoe"
    first_name = "Joe"
    last_name = "Doe"
    email = "joe@doe.com"
    company_name = "Comp Inc"
    address1 = "..."
    address2 = "..."
    city = "Atlanta"
    state = "GA"
    country = "US"
    timezone = 114
    user_status = 1001

    permissions = [
        'SERVER_ADD',
        'SERVER_CANCEL',
        'RESET_PORTAL_PASSWORD',
        ...,
    ]
}

@danielcbright
Copy link
Author

@renier or @riethm can you please update this issue with where we are now? Is it ready for QA testing?

@renier
Copy link
Collaborator

renier commented Jul 19, 2016

@danielcbright (dbright) updated the checklist in the description. It has been QA-ed.

@danielcbright
Copy link
Author

👍 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants