github.com/go-chef/chef@v0.30.1/test_chef_server/recipes/workstation.rb (about)

     1  #
     2  # Install chefdk workstation
     3  #
     4  #
     5  
     6  package 'libx11.dev'
     7  
     8  package 'ntpdate'
     9  
    10  execute 'Sync the time' do
    11    command 'ntpdate time.nist.gov'
    12  end
    13  
    14  file '/etc/chef/accepted_licenses/chef_workstation' do
    15    content "---
    16      id: chef-workstation
    17      name: Chef Workstation
    18      date_accepted: '2020-05-06T23:18:26+00:00'
    19      accepting_product: chef-workstation
    20      accepting_product_version: 2.0.0
    21      user: vagrant
    22      file_format: 1"
    23  end
    24  
    25  execute 'Get chef workstation' do
    26    command 'wget https://packages.chef.io/files/stable/chef-workstation/21.10.640/ubuntu/20.04/chef-workstation_21.10.640-1_amd64.deb'
    27    not_if 'test -x /opt/chef-workstation/bin/chef'
    28  end
    29  
    30  execute 'Install chef workstation' do
    31    command 'dpkg -i chef-workstation_21.10.640-1_amd64.deb'
    32    not_if 'test -x /opt/chef-workstation/bin/chef'
    33  end