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

sync environments dir #189

Closed
ebenezar-mccoy opened this issue Sep 25, 2017 · 3 comments
Closed

sync environments dir #189

ebenezar-mccoy opened this issue Sep 25, 2017 · 3 comments

Comments

@ebenezar-mccoy
Copy link

ebenezar-mccoy commented Sep 25, 2017

Hello,

i have case to test whole /etc/puppetlabs/code with main hiera.yaml and environments with it's own hieras

my kitchen.yml

---
driver:
  name: docker
  use_sudo: false

provisioner:
  name: puppet_apply
  puppet_debug: true
  puppet_verbose: true
  require_chef_for_busser: false
  require_puppet_repo: false
  manifests_path: manifests
  modules_path: modules
  hiera_data_path: hieradata
  puppet_environmentpath_remote_path: /tmp/environments
  puppet_environment: some_environment
  puppet_environment_remote_hieradata_path: data

platforms:
- name: ubuntu

suites:
 - name: default
   driver_config:
     privileged: true
     run_command: /sbin/init
     dockerfile: Dockerfile
     hostname: some_name_for_facts

i currently have separate process uploading the environments directory with rsync to /tmp/environments

then i run converge once again to check for results,

my question: is there configuration option that copy environments directory for me ?

@neillturner
Copy link
Owner

neillturner commented Sep 25, 2017

I have an example repo that demonstrates how to use environments with kitchen-puppet so it copies the environment
https://github.com/neillturner/puppet_vagrant_environment_repo
the puppet environment files can be in the same repository or external to the repository as long as they are accessible
but it only does one environment at a time,

@ebenezar-mccoy
Copy link
Author

ebenezar-mccoy commented Oct 2, 2017

your example dosn't involve coping hiera from both locations

my main hiera.yaml ( with users and general setup for all boxes is in )
/ at /etc/puppetlabs/puppet/code/hiera.yaml

and under environments
/etc/puppetlabs/puppet/code/environments/data/

here are two directories data and func,

under data and func there are several yaml files.

could you please help how can i do that ?

@neillturner neillturner reopened this Oct 4, 2017
@neillturner
Copy link
Owner

I support hiera.global.yaml in addition to hiera.yaml but otherwise don't support this user case

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

No branches or pull requests

2 participants