Convert a Inspec profile to Chef recipe


#1

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


#2

@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


#3

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' }
  end
end

#4

Love the idea, but nothing is planned so far.