Convert a Inspec profile to Chef recipe

Is there a way of converting a profile to a recipe, itโ€™s sounds like Inception
would be cool :smiley:

@kmf right now we do not have such a tool available. it is an interesting idea. this can get very complicated very quick, so it is definitely not an easy task to achieve

1 Like

It could only support a certain subset of the resources, eg. user

control 'Leonardo DiCaprio' do
  impact 1.0
  title 'Check if Leonardo DiCaprio exists'
  desc 'check if the leo user exists'
  describe user('leo') do
    it { should exist }
    its('uid') { should eq 1001 }
    its('gid') { should eq 1001 }
    its('shell') { should eq '/bin/csh' }

Love the idea, but nothing is planned so far.