ncerny / chef_stack

4 stars 6 forks source link

Fix permissions on delivery.license #38

Open brandocorp opened 7 years ago

brandocorp commented 7 years ago

We're running automate 0.8.5, and it seems they've updated the permissions for the deliver.license file. I'm currently getting license errors, and this was the only thing I could find that had changed.

From automate-ctl reconfigure

* file[/var/opt/delivery/license/delivery.license] action create[2017-05-30T20:30:44+00:00] INFO: Processing file[/var/opt/delivery/license/delivery.license] action create (delivery::license_check line 35)
[2017-05-30T20:30:44+00:00] INFO: file[/var/opt/delivery/license/delivery.license] owner changed to 999
[2017-05-30T20:30:44+00:00] INFO: file[/var/opt/delivery/license/delivery.license] mode changed to 644

    - change mode from '0600' to '0644'
    - change owner from 'root' to 'delivery'

and then when running chef-client using the chef_automate I see this

 * chef_file[/var/opt/delivery/license/delivery.license] action create
      * cookbook_file[/var/opt/delivery/license/delivery.license] action create
        - change mode from '0644' to '0600'
        - change owner from 'delivery' to 'root'