Skip to content

Commit

Permalink
Merge pull request #263 from fxposter/additional-hosts
Browse files Browse the repository at this point in the history
Add additional_host attribute to container resource
  • Loading branch information
Tom Duffield committed Jan 30, 2015
2 parents 7548edf + ed0d4dc commit 0f752cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
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

0 comments on commit 0f752cd

Please sign in to comment.