pothiers/puppet-dci2 — pull request #1 by kellerb (2014-11-07 22:37:59+00:00)
Title: Use FQDN's everywhere; enable iinit from mountain provision

The `irodsEnv` file:
* `irodsHost` was entered as in IP address instead of a hostname. Hostnames should always be used instead of IP addresses, due to how iRODS routes internally.
* `irodsUserName` had `vagrant` as the user, instead of `rods`. `irodsUserName` should be the user name in the iRODS system, not a Linux user name.
* The file itself was being sourced from an incorrect location (`/vagrant/irodsEnv` instead of `/vagrant/mountain/files/irodsEnv`).

For the `iinit` issue:
* The `icommands` use the `$HOME` environment variable to find the `.irodsEnv` file. `$HOME` was not set correctly in the Puppet exec environment, so now it is set explicitly.
* `iinit` is particular about how it reads passwords (similar to `sftp`). Passing the password as the first argument is the easiest way to pass the password from inside a script.

`dciResc`:
* It was being created with the same Vault path as `demoResc` (the default resource available after iRODS setup). This is dangerous, so it was changed to a new, unique path.
* Note that each time `mountain` is provisioned, this `dciResc` will be created again, which could cause errors or unexpected behavior.