Skip to content

aix_inittab fails to add new entries #96

@msgarbossa

Description

@msgarbossa

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions