This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(MODULES-4098) Sync the rest of the files
- Loading branch information
Showing
12 changed files
with
209 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,10 @@ | |
/modulesync.yml | ||
/.bundle/ | ||
/Gemfile.lock | ||
/Gemfile.local | ||
/.bundle/ | ||
/.idea/ | ||
/.metadata | ||
*.iml | ||
.*.sw[op] | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name><%= @configs[:puppet_module] %></name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.puppetlabs.geppetto.pp.dsl.ui.modulefileBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.puppetlabs.geppetto.pp.dsl.ui.puppetNature</nature> | ||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Maintenance | ||
|
||
<% if @configs['maintainers'] -%> | ||
Maintainers: | ||
<% @configs['maintainers'].each do |name| -%> | ||
- <%= name %> | ||
<% end -%> | ||
<% end -%> | ||
|
||
Tickets: https://tickets.puppet.com/browse/MODULES. Make sure to set component to `<%= @configs[:puppet_module].gsub('puppetlabs-','') -%>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Puppet Module - <%= @configs[:puppet_module] %> | ||
|
||
<% latest = Date.today.year -%> | ||
<% @configs['copyright_holders'].each do |holder| -%> | ||
<% begindate = '' | ||
if holder['begin'] | ||
begindate = (holder['begin'] == 'latest' ? latest : holder['begin']).to_s | ||
end | ||
enddate = '' | ||
if holder['end'] | ||
enddate = (holder['end'] == 'latest' ? latest : holder['end']).to_s | ||
enddate = ' - ' + enddate unless begindate == '' | ||
end | ||
-%> | ||
Copyright <%= begindate %><%= enddate %> <%= holder['name'] %> | ||
<% end -%> | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<% | ||
# Workaround to support boolean supports_windows and hash+array supported_oss | ||
# settings until one form is no longer used | ||
supports_windows = ( | ||
@configs['supports_windows'] == true \ | ||
|| ( | ||
@configs['supported_oss'].is_a?(Hash) \ | ||
&& @configs['supported_oss'][@configs[:puppet_module]].is_a?(Array) \ | ||
&& @configs['supported_oss'][@configs[:puppet_module]].include?('windows') | ||
) | ||
) | ||
if supports_windows -%> | ||
version: 1.1.x.{build} | ||
skip_commits: | ||
message: /^\(?doc\)?.*/ | ||
clone_depth: 10 | ||
init: | ||
- SET | ||
- 'mkdir C:\ProgramData\PuppetLabs\code && exit 0' | ||
- 'mkdir C:\ProgramData\PuppetLabs\facter && exit 0' | ||
- 'mkdir C:\ProgramData\PuppetLabs\hiera && exit 0' | ||
- 'mkdir C:\ProgramData\PuppetLabs\puppet\var && exit 0' | ||
environment: | ||
matrix: | ||
<% @configs['matrix'].each do |matrix| -%> | ||
- PUPPET_GEM_VERSION: <%= matrix['PUPPET_GEM_VERSION'] %> | ||
RUBY_VER: <%= matrix['RUBY_VER'] %> | ||
<% end -%> | ||
<% if @configs['matrix_extras'] -%> | ||
<% @configs['matrix_extras'].each do |extra| -%> | ||
- PUPPET_GEM_VERSION: <%= extra['PUPPET_GEM_VERSION'] %> | ||
RUBY_VER: <%= extra['RUBY_VER'] %> | ||
<% end -%> | ||
<% end -%> | ||
matrix: | ||
fast_finish: true | ||
install: | ||
- SET PATH=C:\Ruby%RUBY_VER%\bin;%PATH% | ||
- <%= @configs['appveyor_bundle_install'] %> | ||
- type Gemfile.lock | ||
build: off | ||
test_script: | ||
- bundle exec puppet -V | ||
- ruby -v | ||
<% @configs['test_script'].each do |script| -%> | ||
- <%= script %> | ||
<% end -%> | ||
notifications: | ||
- provider: Email | ||
to: | ||
- nobody@nowhere.com | ||
on_build_success: false | ||
on_build_failure: false | ||
on_build_status_changed: false | ||
<% else -%> | ||
# Appveyor is only enabled on modules that support windows | ||
<% end -%> |