Skip to content

Instantly share code, notes, and snippets.

@dhollinger
Last active September 14, 2017 18:40
Show Gist options
  • Save dhollinger/881d396f490cd8b258dbc813c0058731 to your computer and use it in GitHub Desktop.
Save dhollinger/881d396f490cd8b258dbc813c0058731 to your computer and use it in GitHub Desktop.
require 'gitlab'
Gitlab.configure do |config|
config.endpoint = 'https://gitlab.example.com/api/v4'
config.private_token = 'TOKEN'
config.httparty = { verify: false }
end
Gitlab.group(20).projects.each do |project|
mod "#{project['name']}",
:git => "#{project['ssh_url_to_repo']}",
:ref => 'master',
:install_path => 'hieradata'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment