UCLALibrary / packer-samvera

A build of Samvera/Hyrax using Packer and the 'ansible-samvera' roles
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Add FCREPO_DEVELOPMENT_CONTEXT environmental variable and SOLR_DEVELOPMENT_CORE #27

Closed ksclarke closed 6 years ago

ksclarke commented 6 years ago

The VM uses the Ansible roles to provision so the fedora.yml what's in the californica repo doesn't quite match up. We need to parameterize the fedora.yml to take a customizable Tomcat context, while still using /rest as a default.

What's there:

vagrant@localhost:~/californica$ cat config/fedora.yml
development:
  user: fedoraAdmin
  password: fedoraAdmin
  url: http://127.0.0.1:<%= ENV['FCREPO_DEVELOPMENT_PORT'] || 8080 %>/rest
  base_path: /dev
test:
  user: fedoraAdmin
  password: fedoraAdmin
  url: http://127.0.0.1:<%= ENV['FCREPO_TEST_PORT'] || 8986 %>/rest
  base_path: /test
production:
  user: fedoraAdmin
  password: fedoraAdmin
  url: http://127.0.0.1:8080/fedora/rest
  base_path: /prod
vagrant@localhost:~/californica$ lynx http://127.0.0.1:8080/fedora/rest

We need something like: url: http://127.0.0.1:<%= ENV['FCREPO_DEVELOPMENT_PORT'] || 8080 %><%= ENV['FCREPO_DEVELOPMENT_CONTEXT'] || /rest (there is a separate ticket in californica for this: uclalibrary/californica#59).

Once this is done we just need to add the FCREPO_DEVELOPMENT_CONTEXT parameter to this Packer build.

Related #28

ksclarke commented 6 years ago

The solr.yml also needs to be parameterized so Packer will need to supply the value for that parameter once that's done.

ksclarke commented 6 years ago

Bess made a good suggestion to just use a single parameter for port and context/core. Do that instead.