# Convert a Inspec profile to Chef recipe

**URL:** https://discourse.chef.io/t/convert-a-inspec-profile-to-chef-recipe/10811
**Category:** Chef InSpec
**Created:** [April 21, 2017, 1:33pm UTC](https://discourse.chef.io/t/convert-a-inspec-profile-to-chef-recipe/10811 "2017-04-21T13:33:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kmf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kmf/32/1778_2.png) [@kmf](https://discourse.chef.io/u/kmf)
#### Post date: [April 21, 2017, 1:33pm UTC](https://discourse.chef.io/t/convert-a-inspec-profile-to-chef-recipe/10811/1 "2017-04-21T13:33:46Z")

</div>

Is there a way of converting a profile to a recipe, it’s sounds like **_Inception_**  
would be cool 😃

---

<div class="post-metadata">

### Author: ![chris-rock](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@chris-rock](https://discourse.chef.io/u/chris-rock)
#### Post date: [April 21, 2017, 1:36pm UTC](https://discourse.chef.io/t/convert-a-inspec-profile-to-chef-recipe/10811/2 "2017-04-21T13:36:36Z")

</div>

@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

---

<div class="post-metadata">

### Author: ![kmf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kmf/32/1778_2.png) [@kmf](https://discourse.chef.io/u/kmf)
#### Post date: [April 21, 2017, 1:48pm UTC](https://discourse.chef.io/t/convert-a-inspec-profile-to-chef-recipe/10811/3 "2017-04-21T13:48:20Z")

</div>

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
```

---

<div class="post-metadata">

### Author: ![chris-rock](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@chris-rock](https://discourse.chef.io/u/chris-rock)
#### Post date: [April 21, 2017, 2:08pm UTC](https://discourse.chef.io/t/convert-a-inspec-profile-to-chef-recipe/10811/4 "2017-04-21T14:08:44Z")

</div>

Love the idea, but nothing is planned so far.
