Closed carolyncole closed 2 years ago
@regineheberlein and @carolyncole : this ticket is completed, and can be closed, right?
no, this is still pending!
Hey team! Please add your planning poker estimate with Zenhub @kevinreiss @maxkadel @regineheberlein @rladdusaw
we need to review the vault. @regineheberlein will update with the env keys
we need base_uri, username, and password:
@config = ArchivesSpace::Configuration.new({
base_uri: ENV['ASPACE_URL'],
base_repo: "",
username: ENV['ASPACE_USER'],
password: ENV['ASPACE_PASSWORD'],
#page_size: 50,
throttle: 0,
verify_ssl: false
})
credentials in LastPass in the Shared-ITIMS-Passwords directory (aspace2alma credentials)
@regineheberlein a few questions:
ASPACE_URL
and ASPACE_STAGING_URL
environment variables in aspace_helpers. Should both be set on each box?aspace_staging_login
. Could we change it to aspace_login
so it could test authenticating against either environment? Or is there a better way to check authentication?Thanks @sandbergja ! You're right, the aspace url probably doesn't need to be vaulted.
I think we should set both urls on staging, but only ASPACE_URL on production, do you think that makes sense?
I haven't thought of the test.rb script as static. I use it to try things out all the time, and have assumed that others change it around as they need as well. Does that answer the question? Should we have a test_connection.rb?
Add the information to the vault: https://github.com/pulibrary/princeton_ansible/blob/main/group_vars/lib_jobs/vault.yml
Then add environment variables here: https://github.com/pulibrary/princeton_ansible/blob/main/roles/lib_jobs/vars/main.yml#L4
Last utilize the environment variables in the authorization file (It can now be checked into github and removed from https://github.com/pulibrary/aspace_helpers/blob/main/config/deploy.rb#L24)