- # Going forward starting with Ubuntu 16.04 and Debian 9.0
- # /etc/apt/auth.conf is owned by _apt. In previous versions it is
- # root.
- auth_conf_owner = case os
- when 'Ubuntu 14.04', 'Debian 7.0', 'Debian 8.0'
- 'root'
- else
- '_apt'
- end
-
- auth_conf_content = "// This file is managed by Puppet. DO NOT EDIT.
-machine deb.example.net login foologin password secret
-machine apt.example.com login aptlogin password supersecret
-"
+ auth_conf_content = <<~CONTENT
+ // This file is managed by Puppet. DO NOT EDIT.
+ machine deb.example.net login foologin password secret
+ machine apt.example.com login aptlogin password supersecret
+ CONTENT