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

aix_inittab fails to add new entries #96

Open
msgarbossa opened this issue Apr 25, 2018 · 0 comments
Open

aix_inittab fails to add new entries #96

msgarbossa opened this issue Apr 25, 2018 · 0 comments

Comments

@msgarbossa
Copy link

Cookbook version

2.2.0

Chef-client version

13.6.4

Platform Details

AIX 7.1

Scenario:

add an inittab entry to to /etc/inittab

Steps to Reproduce:

From the README:

aix_inittab 'my-awesome-aix-daemon' do
  runlevel '2'
  processaction 'once'
  command '/opt/mycompany/libexec/mydaemon -d > /dev/console 2>&1'
  action :install
end

Expected Result:

Entry should be added to /etc/inittab

Actual Result:

  * aix_inittab[my-awesome-aix-daemon] action install

    ================================================================================
    Error executing action `install` on resource 'aix_inittab[my-awesome-aix-daemon]'
    ================================================================================

    Chef::Exceptions::ValidationFailed
    ----------------------------------
    runlevel is required

    Cookbook Trace:
    ---------------
    /var/chef/cache/cookbooks/aix/resources/inittab.rb:40:in `block in class_from_file'

    Resource Declaration:
    ---------------------
    # In /var/chef/cache/cookbooks/my_awesome_cookbook/recipes/default.rb

    141:   aix_inittab 'my-awesome-aix-daemon' do
    142:     runlevel '2'
    143:     processaction 'once'
    144:     command '/opt/mycompany/libexec/mydaemon -d > /dev/console 2>&1'
    145:     action :install
    146:   end
    147:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant