|
| 1 | +require 'spec_helper' |
| 2 | + |
| 3 | +describe 'openshift_origin' do |
| 4 | + let :facts do { |
| 5 | + :osfamily => 'RedHat', |
| 6 | + } end |
| 7 | + |
| 8 | + describe 'with minimal parameters' do |
| 9 | + let :params do { |
| 10 | + :bind_key => 'something', |
| 11 | + } end |
| 12 | + |
| 13 | + it { should compile.with_all_deps } |
| 14 | + end |
| 15 | + |
| 16 | + describe 'broker example' do |
| 17 | + let :params do { |
| 18 | + # Components to install on this host: |
| 19 | + :roles => ['broker','nameserver','msgserver','datastore'], |
| 20 | + |
| 21 | + # BIND / named config |
| 22 | + # This is the key for updating the OpenShift BIND server |
| 23 | + :bind_key => 'something', |
| 24 | + # The domain under which applications should be created. |
| 25 | + :domain => 'example.com', |
| 26 | + # Apps would be named <app>-<namespace>.example.com |
| 27 | + # This also creates hostnames for local components under our domain |
| 28 | + :register_host_with_nameserver => true, |
| 29 | + # Forward requests for other domains (to Google by default) |
| 30 | + :conf_nameserver_upstream_dns => ['8.8.8.8', '8.8.4.4'], |
| 31 | + |
| 32 | + # NTP Servers for OpenShift hosts to sync time |
| 33 | + :ntp_servers => ['ntp.example.com iburst'], |
| 34 | + |
| 35 | + # The FQDNs of the OpenShift component hosts |
| 36 | + :broker_hostname => 'broker.example.com', |
| 37 | + :nameserver_hostname => 'broker.example.com', |
| 38 | + :datastore_hostname => 'broker.example.com', |
| 39 | + :msgserver_hostname => 'broker.example.com', |
| 40 | + |
| 41 | + # Auth OpenShift users created with htpasswd tool in /etc/openshift/htpasswd |
| 42 | + :broker_auth_plugin => 'htpasswd', |
| 43 | + # Username and password for initial openshift user |
| 44 | + :openshift_user1 => 'openshift', |
| 45 | + :openshift_password1 => 'password', |
| 46 | + |
| 47 | + #Enable development mode for more verbose logs |
| 48 | + :development_mode => true, |
| 49 | + } end |
| 50 | + |
| 51 | + it { should compile.with_all_deps } |
| 52 | + end |
| 53 | + |
| 54 | + describe 'node example' do |
| 55 | + let :params do { |
| 56 | + # Components to install on this host: |
| 57 | + :roles => ['node'], |
| 58 | + |
| 59 | + # BIND / named config |
| 60 | + # This is the key for updating the OpenShift BIND server |
| 61 | + :bind_key => 'something', |
| 62 | + # The domain under which applications should be created. |
| 63 | + :domain => 'example.com', |
| 64 | + # Apps would be named <app>-<namespace>.example.com |
| 65 | + # This also creates hostnames for local components under our domain |
| 66 | + :register_host_with_nameserver => true, |
| 67 | + # Forward requests for other domains (to Google by default) |
| 68 | + :conf_nameserver_upstream_dns => ['8.8.8.8', '8.8.4.4'], |
| 69 | + |
| 70 | + # NTP Servers for OpenShift hosts to sync time |
| 71 | + :ntp_servers => ['ntp.example.com iburst'], |
| 72 | + |
| 73 | + # The FQDNs of the OpenShift component hosts |
| 74 | + :broker_hostname => 'broker.example.com', |
| 75 | + :msgserver_hostname => 'broker.example.com', |
| 76 | + :node_hostname => 'node.example.com', |
| 77 | + |
| 78 | + # To enable installing the Jenkins cartridge: |
| 79 | + :install_method => 'yum', |
| 80 | + :jenkins_repo_base => 'http://pkg.jenkins-ci.org/redhat', |
| 81 | + |
| 82 | + # Cartridges to install on Node hosts |
| 83 | + :install_cartridges => ['php', 'mysql'], |
| 84 | + |
| 85 | + #Enable development mode for more verbose logs |
| 86 | + :development_mode => true, |
| 87 | + } end |
| 88 | + |
| 89 | + it { should compile.with_all_deps } |
| 90 | + end |
| 91 | +end |
0 commit comments