vhost_ssl.pp 965 B

12345678910111213141516171819202122232425262728293031323334
  1. include nginx
  2. nginx::resource::vhost { 'test3.local test3':
  3. ensure => present,
  4. www_root => '/var/www/nginx-default',
  5. ssl => true,
  6. ssl_cert => 'puppet:///modules/sslkey/whildcard_mydomain.crt',
  7. ssl_client_cert => 'puppet:///modules/sslkey/whildcard_mydomain.crt',
  8. ssl_key => 'puppet:///modules/sslkey/whildcard_mydomain.key'
  9. }
  10. nginx::resource::vhost { 'test2.local test2':
  11. ensure => present,
  12. www_root => '/var/www/nginx-default',
  13. ssl => true,
  14. ssl_cert => 'puppet:///modules/sslkey/whildcard_mydomain.crt',
  15. ssl_key => 'puppet:///modules/sslkey/whildcard_mydomain.key'
  16. }
  17. nginx::resource::location { 'test2.local-bob':
  18. ensure => present,
  19. www_root => '/var/www/bob',
  20. location => '/bob',
  21. vhost => 'test2.local test2',
  22. }
  23. nginx::resource::location { 'test3.local-bob':
  24. ensure => present,
  25. www_root => '/var/www/bob',
  26. location => '/bob',
  27. vhost => 'test3.local test3',
  28. }