Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
(MODULES-4098) Sync LICENSE, MAINTAINERS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hunner committed Jan 17, 2017
1 parent dd9ffe6 commit 5538840
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config_defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ Gemfile:
- gem: beaker-abs
from_env: 'BEAKER_ABS_VERSION'
version: '~> 0.1'

LICENSE:
license_type: 'apache2' # Available options 'puppetpe' and 'apache2' (default is apache2)

MAINTAINERS.md:
maintainers:
- "Puppet Forge Modules Team `forge-modules |at| puppet |dot| com`"

Rakefile:
default_disabled_lint_checks:
- 'relative'
Expand Down
25 changes: 25 additions & 0 deletions moduleroot/LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<%
# Determine the license types
lictype = 'apache2'
if @configs['license_type']
case @configs['license_type']
when 'puppetpe'
lictype = 'puppetpe'
end
end

# Default Apache 2 License
if lictype == 'apache2' -%>

Apache License
Version 2.0, January 2004
Expand Down Expand Up @@ -200,3 +212,16 @@
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.
<%-
end

# Puppet PE Only License
if lictype == 'puppetpe' -%>
This Module is only available for users of Puppet Enterprise with a valid Software License Agreement
for Puppet Enterprise. This Module is not available for users of Puppet software under an open source license.

By downloading this Module, you agree that you have a valid Software License Agreement with Puppet for
Puppet Enterprise and you further agree that your use of this Module is governed by the terms of that
Software License Agreement.
<%
end -%>
10 changes: 10 additions & 0 deletions moduleroot/MAINTAINERS.md
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-','') -%>`.

0 comments on commit 5538840

Please sign in to comment.