Skip to content

Conversation

foobarbam
Copy link

Description

  • Refactor aix_chsec resource to utilize AIX tooling for inspection of current values.
  • Fix issue aix_chsec bug in cases where resource's name doesn't match the proper file_name.
    previous code used ::File.exist?(new_resource.name) instead of ::File.exist?(file_name)
  • make attributes and stanza properties required for aix_chsec
  • minor version bump to 1.2.1

Issues Resolved

see above, non-documented but experienced in local testing

Check List

jchalfan@us.ibm.com added 7 commits November 4, 2016 15:43
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
@ghost
Copy link

ghost commented Nov 4, 2016

Good work \o/. Thank you :).

'xpdf' => { version: '1.00-1', rpm: 'xpdf/xpdf-1.00-1.aix4.3.ppc.rpm' },
'xpm-devel' => { version: '3.4k-8', rpm: 'xpm/xpm-devel-3.4k-8.aix6.1.ppc.rpm' },
'xpm' => { version: '3.4k-8', rpm: 'xpm/xpm-3.4k-8.aix5.2.ppc.rpm' },
# 'xpm' => { version: '3.4k-8', rpm: 'xpm/xpm-3.4k-8.aix5.2.ppc.rpm' },
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason this was commented out?

Copy link
Author

@foobarbam foobarbam Nov 7, 2016

Choose a reason for hiding this comment

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

In my testing it would cause Ruby to complain about useless hash redefinitions, which is correct, no? You cannot have the same hash key twice, the last defined will be the only one used. (note that the 'xpm' key is defined twice in there).

Copy link
Author

Choose a reason for hiding this comment

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

I still had a terminal with the offending output, here's a snippet of what I was seeing (in rspec):

tests::remote_chef_gem
  aix 6.1
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
Please report a bug if this causes problems.
    cleanup dummies
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
    downloads and installs dummy gem
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
    downloads and upgrades dummy gem
  aix 7.1
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
    cleanup dummies
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
    downloads and installs dummy gem
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
    downloads and upgrades dummy gem
  redhat 7.0
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
    cleanup dummies
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
    downloads and installs dummy gem
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
    downloads and upgrades dummy gem

Copy link

Choose a reason for hiding this comment

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

Same behaviour xpm key is duplicated
One must be removed (not commented)

Installing Cookbook Gems:
Compiling Cookbooks...
/var/cache/chef/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358

Copy link
Author

Choose a reason for hiding this comment

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

done

Copy link
Author

Choose a reason for hiding this comment

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

Duplicate keys removed as requested Is there something else wrong here @chmod666org or @tas50 . I'll fix whatever is necessary, my fork has been working well on my AIX systems. Is anything wrong

jchalfan@us.ibm.com added 8 commits March 31, 2017 13:50
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
@foobarbam
Copy link
Author

foobarbam commented Mar 31, 2017

So I'm a jerk and totally blew off fixing this.

I've rebased on current master and eliminated the duplicate key.

Please review and comment.

Thanks!

@foobarbam
Copy link
Author

@tas50,

Will this suffice or would you prefer we leave the duplicate key in place?

@foobarbam foobarbam changed the title v1.2.1 - simplify aix_chsec simplify aix_chsec Apr 20, 2017
@srctarget srctarget mentioned this pull request Jan 26, 2018
1 task
@tas50
Copy link
Contributor

tas50 commented Jul 18, 2018

@foobarbam Sorry for the late response here, but if you want to rebase this I'll get it merged in.

@tas50 tas50 added Triage: Needs Information Indicates an issue needs more information in order to work on it. and removed Status: Pending Contributor Response labels Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Triage: Needs Information Indicates an issue needs more information in order to work on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants