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

Add additional_host attribute to container resource #263

Merged
merged 1 commit into from
Jan 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ These attributes are associated with this LWRP action.

Attribute | Description | Type | Default
----------|-------------|------|--------
additional_host | Add a custom host-to-IP mapping (host:ip) | String, Array | nil
attach | Attach container's stdout/stderr and forward all signals to the process | TrueClass, FalseClass | nil
cidfile | File to store container ID | String | nil
container_name | Name for container/service | String | nil
Expand Down
1 change: 1 addition & 0 deletions providers/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ def run
# rubocop:disable MethodLength
def run_cli_args
{
'add-host' => Array(new_resource.additional_host),
'cpu-shares' => new_resource.cpu_shares,
'cidfile' => new_resource.cidfile,
'detach' => new_resource.detach,
Expand Down
1 change: 1 addition & 0 deletions resources/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

attribute :image, :name_attribute => true

attribute :additional_host, :kind_of => [String, Array]
attribute :attach, :kind_of => [TrueClass, FalseClass]
attribute :author, :kind_of => [String]
attribute :cidfile, :kind_of => [String]
Expand Down