pulibrary / aspace_helpers

methods and reports to support common SC activities in ArchivesSpace
1 stars 0 forks source link

Add Aspace Environment Variables into ansible #175

Closed carolyncole closed 2 years ago

carolyncole commented 2 years ago

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)

sandbergja commented 2 years ago

@regineheberlein and @carolyncole : this ticket is completed, and can be closed, right?

regineheberlein commented 2 years ago

no, this is still pending!

christinach commented 2 years ago

Hey team! Please add your planning poker estimate with Zenhub @kevinreiss @maxkadel @regineheberlein @rladdusaw

carolyncole commented 2 years ago

https://github.com/pulibrary/princeton_ansible/commit/e2d55066e5f31cfc43bcdf5fd863a10912309cd0

christinach commented 2 years ago

we need to review the vault. @regineheberlein will update with the env keys

regineheberlein commented 2 years ago

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
  })
regineheberlein commented 2 years ago

credentials in LastPass in the Shared-ITIMS-Passwords directory (aspace2alma credentials)

sandbergja commented 2 years ago

@regineheberlein a few questions:

regineheberlein commented 2 years ago

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?