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

Solaris Support #395

Merged
merged 14 commits into from
Jan 28, 2016
Merged

Solaris Support #395

merged 14 commits into from
Jan 28, 2016

Conversation

chris-rock
Copy link
Contributor

  • tested against Solaris 10, Solaris 11, SmartOS and OmniOS
  • implements file, os, package, service, group, user, post, etc_group for Solaris

Test against Solaris 10:

$ KITCHEN_LOCAL_YAML=.kitchen.chef.yml b kitchen verify default-chef-solaris-1011
-----> Starting Kitchen (v1.5.0)
-----> Verifying <default-chef-solaris-1011>...
"You are currently running on OS: solaris, OS release: 10, OS family: solaris"
.............................................................................................

Finished in 2.66 seconds (files took 2.04 seconds to load)
96 examples, 0 failures

       Finished verifying <default-chef-solaris-1011> (0m4.57s).
-----> Kitchen is finished. (0m6.89s)

Test against Solaris 11:

$ inspec exec test/integration/test/integration/default  -t ssh://inspec@192.168.59.103 --password password --sudo --sudo-password=password
"You are currently running on OS: solaris, OS release: 11, OS family: solaris"
..............................................................................
...............

Finished in 2.34 seconds (files took 1.32 seconds to load)
96 examples, 0 failures

Test against OmniOS

$ inspec exec test/integration/test/integration/default -t ssh://vagrant@localhost:2201 --password vagrant --sudo-password=vagrant
"You are currently running on OS: omnios, OS release: 11, OS family: omnios"
.......................................................................................

Finished in 0.52465 seconds (files took 0.7729 seconds to load)
87 examples, 0 failures

Test against SmartOS

$ inspec exec test/integration/test/integration/default -t ssh://root@localhost:2202 --password vagrant
"You are currently running on OS: smartos, OS release: 11, OS family: smartos"
.......................................................................................

Finished in 1.64 seconds (files took 2.89 seconds to load)
87 examples, 0 failures

end

def uid
identiy.nil? ? nil : identiy[:uid]
identity.nil? ? nil : identity[:uid]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about identity && identity[:uid]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@arlimus
Copy link
Contributor

arlimus commented Jan 28, 2016

Thank you for the huge inclusion for Solaris @chris-rock !!
🚀

arlimus added a commit that referenced this pull request Jan 28, 2016
@arlimus arlimus merged commit 25e7be1 into master Jan 28, 2016
@arlimus arlimus deleted the chris-rock/solaris branch January 28, 2016 21:33
@chris-rock chris-rock added this to the 0.9.11 milestone Jan 29, 2016
@chris-rock chris-rock added the Type: Enhancement Improves an existing feature label Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants