Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(FACT-1281) Allow host configs to be generated at runtime #1244

Merged

Conversation

kylog
Copy link

@kylog kylog commented Dec 28, 2015

No description provided.

joshcooper and others added 2 commits December 23, 2015 14:33
This commit adds a dependency on beaker-hostgenerator in the
acceptance Gemfile, which may be overridden using the
`BEAKER_HOSTGENERATOR_VERSION` environment variable.

The acceptance Rakefile will continue to use the `CONFIG` environment
variable, which must point to an existing host config file.

If `TEST_TARGET` is specified, it will override `CONFIG`, and the Rakefile
will use beaker-hostgenerator to dynamically generate a host config. The
host config is generated in the `acceptance/tmp` directory, as
opposed to `/tmp` so that it doesn't conflict with concurrent acceptance
tests running on the same CI coordinator. It also appends SecureRandom
to the hostfile, because it seems like a good idea. The resulting host
config is copied to the `log/latest/config.yml`.

For example, to run against a tagged build:

    $ bundle exec rake ci:test:aio TEST_TARGET=redhat7-64a SHA=1.3.2

To run against a non-tagged commit:

    $ bundle exec rake ci:test:aio TEST_TARGET=redhat7-64a \
      SHA=<full sha> SUITE_VERSION=<git describe>

This commit doesn't remove the static host configs as CI jobs need
to be updated first.
@kylog
Copy link
Author

kylog commented Dec 28, 2015

This adds a one-line, temporary change to #1243. This change can be backed out when we merge https://github.com/puppetlabs/ci-job-configs/pull/804, hopefully later today (or Real Soon Now).

kylog pushed a commit that referenced this pull request Dec 28, 2015
…use-beaker-hg

(FACT-1281) Allow host configs to be generated at runtime
@kylog kylog merged commit 1191590 into puppetlabs:stable Dec 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants