A Vagrant installation of CKAN using Puppet targeting CentOS 6.6. Heavily derived from Michael Speth's CKAN repository.
First, clone this repo, then vagrant up
inside the cloned repository directory. The provisioning process is lengthy and, depending on the speed of your internet connection, may take longer than 20 minutes. Get coffee! When it's done, a few post-install steps need to happen:
- Log into the VM:
vagrant ssh
- Become root:
sudo su -
- Activate the Python virtualenv so we can use the admin tools for CKAN:
source /usr/lib/ckan/default/bin/activate
- Create an admin user:
paster --plugin=ckan sysadmin add admin -c /etc/ckan/default/production.ini
- Restart web server:
service httpd restart
- Stop and start the
supervisord
process, which manages the harvester, to ensure that it has the right configuration (doing a restart on the service doesn't do what we expect here, need to explicitly stop and start):service supervisord stop; service supervisord start
- Done!
exit
andexit
andexit
.
Once that's done, you can launch CKAN by following directions here if using the system in development mode (default for this repo).
If serving via Apache, you can use these URLs to access CKAN and its resources:
- CKAN: http://localhost:8080
- CKAN Harvester: http://localhost:8080/harvest
- Solr admin for CKAN schema: http://localhost:8081/solr/ckan-schema/admin/
If you get an HTTP 500 error when trying to load CKAN this way, then the system is in debug mode and must be launched via Paster.