Infrastructure Config Archive - Install
Requirements:
- Linux (tested on Ubuntu, Debian derivatives should be fine, CentOS/Red Hat should work but not tested)
- Expect
- Go v1.4+ (if compiling from source)
Installing from Debian Package (recommended)
- Download the appropiate .deb for your architecture from the GitHub Release
- Install the .deb file
- Edit /opt/icarchive/config/configuration.toml to fit your environment
- Restart icarchive service
- In your browser go to http://[hostname]:8080 (8080 is the default port, replace it with what you set in the configuration)
Example for 64-bit:
Installing from Tarball
- Download the appropiate .tar.gz for your architecture from the GitHub Release
- Untar the folder to an appropiate directory
- Copy config/sample-configuration.toml to config/configuration.toml
- Edit the configuration to fit your environment
- Run the icaexec executable
- In your browser go to http://[hostname]:8080 (8080 is the default port, replace it with what you set in the configuration)
Example for 64-bit:
Installing from Source
- Get the source code
- Compile with Go
- Copy config/sample-configuration.toml to config/configuration.toml
- Edit the configuration to fit your environment
- Run the icaexec executable
- In your browser go to http://[hostname]:8080 (8080 is the default port, replace it with what you set in the configuration)
Setup Cron Job
- Run
crontab -e -u [user to run cron]
. - Add
0 5 * * 1 curl http://[hostname of ICA server]:[port]/api/runnow
to the bottom of the file. - Now this job will run at 5am on Sunday every week.
Setup Upstart Job
If you installed ICA with the debian package, this as already been setup for you.
- Copy upstart.conf to /etc/init/ica.conf
- Edit /etc/init/ica.conf and make any appropiate settings such as user to run as, the folder containing the ICA executable, and the full path of the ICA executable
- Run
start ica
to verify the job works. The Upstart job will start on boot and can be managed with[start, stop, status] ica
.
The source code is available at: github.com/lfkeitel/infrastructure-config-archive