Showing with 101 additions and 10 deletions.
  1. +13 −4 CHANGELOG.md
  2. +24 −0 locales/config.yaml
  3. +60 −0 locales/puppetlabs-zone_core.pot
  4. +2 −2 metadata.json
  5. +1 −3 spec/acceptance/tests/zone_ensure_spec.rb
  6. +1 −1 spec/spec_helper_acceptance.rb
17 changes: 13 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@

All notable changes to this project will be documented in this file.

## Release 0.1.0
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).

**Features**
## [1.0.1] - 2018-08-20
### Added
- (PUP-9053) Enable localization
### Changed
- (PUP-9052) Bump puppet req to at least puppet 6
- Support puppet 6 and install module on all hosts, not just default
- (maint) Combine tests to fix order dependency

**Bugfixes**
## [1.0.0] - 2018-06-07
### Summary
This is the initial release of the extracted zone module

**Known Issues**
[1.0.1]: https://github.com/puppetlabs/puppetlabs-zone_core/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/puppetlabs/puppetlabs-zone_core/releases/tag/1.0.0
24 changes: 24 additions & 0 deletions locales/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This is the project-specific configuration file for setting up
# fast_gettext for your project.
gettext:
# This is used for the name of the .pot and .po files; they will be
# called <project_name>.pot?
project_name: puppetlabs-zone_core
# This is used in comments in the .pot and .po files to indicate what
# project the files belong to and should bea little more desctiptive than
# <project_name>
package_name: puppetlabs-zone_core
# The locale that the default messages in the .pot file are in
default_locale: en
# The email used for sending bug reports.
bugs_address: docs@puppet.com
# The holder of the copyright.
copyright_holder: Puppet, Inc.
# This determines which comments in code should be eligible for translation.
# Any comments that start with this string will be externalized. (Leave
# empty to include all.)
comments_tag: TRANSLATOR
# Patterns for +Dir.glob+ used to find all files that might contain
# translatable content, relative to the project root directory
source_files:
- './lib/**/*.rb'
60 changes: 60 additions & 0 deletions locales/puppetlabs-zone_core.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2018 Puppet, Inc.
# This file is distributed under the same license as the puppetlabs-zone_core package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: puppetlabs-zone_core 1.0.0-5-g5f1088d\n"
"\n"
"Report-Msgid-Bugs-To: docs@puppet.com\n"
"POT-Creation-Date: 2018-08-20 09:50-0700\n"
"PO-Revision-Date: 2018-08-20 09:50-0700\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

#: ../lib/puppet/provider/zone/solaris.rb:84
msgid "can not remove network based on default router"
msgstr ""

#: ../lib/puppet/provider/zone/solaris.rb:157
msgid "Failed to apply configuration"
msgstr ""

#: ../lib/puppet/type/zone.rb:105
msgid "Waiting for zone to finish processing"
msgstr ""

#: ../lib/puppet/type/zone.rb:121
msgid "Cannot move %{direction} from %{name}"
msgstr ""

#: ../lib/puppet/type/zone.rb:199
msgid "The zone base must be fully qualified"
msgstr ""

#: ../lib/puppet/type/zone.rb:234
msgid "Datasets must be the name of a zfs filesystem"
msgstr ""

#: ../lib/puppet/type/zone.rb:253
msgid "Inherited filesystems must be fully qualified"
msgstr ""

#: ../lib/puppet/type/zone.rb:326
msgid "'%{ip}' is an invalid %{name}"
msgstr ""

#: ../lib/puppet/type/zone.rb:331
msgid "only interface may be specified when using exclusive IP stack: %{interface}:%{address}"
msgstr ""

#: ../lib/puppet/type/zone.rb:335
msgid "ip must contain interface name and ip address separated by a \":\""
msgstr ""
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppetlabs-zone_core",
"version": "1.0.0",
"version": "1.0.1",
"author": "Puppet Labs",
"summary": "Manage Solaris Zones",
"license": "Apache-2.0",
Expand All @@ -24,7 +24,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 4.7.0 < 6.0.0"
"version_requirement": ">= 6.0.0 < 7.0.0"
}
],
"pdk-version": "1.5.0",
Expand Down
4 changes: 1 addition & 3 deletions spec/acceptance/tests/zone_ensure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

solaris_agents.each do |agent|
context "on #{agent}" do
it 'creates a zone' do
it 'creates and deletes a zone' do
step 'Zone: make it running'
step 'progress would be logged to agent:/var/log/zones/zoneadm.<date>.<zonename>.install'
step 'install log would be at agent:/system/volatile/install.<id>/install_log'
Expand All @@ -45,9 +45,7 @@
apply_manifest_on(agent, running_manifest) do |result|
assert_no_match(%r{created|changed|removed}, result.stdout, "err: #{agent}")
end
end

it 'deletes a zone' do
step 'Zone: ensure can remove'
step 'progress would be logged to agent:/var/log/zones/zoneadm.<date>.<zonename>.uninstall'
apply_manifest_on(agent, absent_manifest) do |result|
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def solaris_agents
c.before :suite do
unless ENV['BEAKER_provision'] == 'no'
run_puppet_install_helper
install_module_on(hosts_as(hosts))
install_module_on(hosts)
install_module_dependencies_on(hosts)
end
end
Expand Down