Advertisement
t-readyroc

Apt module differences

May 4th, 2016
2,994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.72 KB | None | 0 0
  1.  
  2. 1.8.x:
  3.  
  4. apt::source { 'ubuntu_stable':
  5.   location          => "http://$mirror:80/ubuntu/",
  6.   release           => "$lsbdistcodename",
  7.   repos             => 'main restricted multiverse universe',
  8.   key               => "$mirrorkey",
  9.   key_server        => "$mirrorkey_server",
  10.   include_src       => false,
  11.   include_deb       => true
  12.   }
  13.  
  14. 2.2.x:
  15.  
  16. apt::source { 'ubuntu_stable':
  17.   location          => "http://$mirror:80/ubuntu/",
  18.   release           => "$lsbdistcodename",
  19.   repos             => 'main restricted multiverse universe',
  20.   key               => { 'id'     => "$mirrorkey",
  21.                          'server' => "$mirrorkey_server",
  22.                        }
  23.   include           => { 'deb' => true }
  24.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement