Skip to content
This repository was archived by the owner on Apr 8, 2021. It is now read-only.

Commit 63af461

Browse files
committed
Fixes for running latest boulder
1 parent 72ceaf2 commit 63af461

File tree

4 files changed

+38
-9
lines changed

4 files changed

+38
-9
lines changed

CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# x.y.z
1+
# 0.1.2
22

33
* Added more specific platform version specification.
4+
* Get boulder git revision from attribute
45

56
# 0.1.1
67

@@ -9,5 +10,4 @@
910
# 0.1.0
1011

1112
* Initial release of `letsencrypt-boulder-server`, based off
12-
[`acme_server` test
13-
cookbook](https://github.com/schubergphilis/letsencrypt/tree/master/test/fixtures/cookbooks/acme_server).
13+
[`acme_server` test cookbook](https://github.com/schubergphilis/letsencrypt/tree/master/test/fixtures/cookbooks/acme_server).

attributes/default.rb

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
#
2+
# Author:: Thijs Houtenbos <[email protected]>
3+
# Cookbook:: chef-letsencrypt-boulder-server
4+
# Attribute:: default
5+
#
6+
# Copyright 2015 Schuberg Philis
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
#
20+
21+
default['boulder']['revision'] = 'master'
22+
123
default['boulder']['config']['boulder-config']['va']['portConfig']['httpPort'] = 80
224
default['boulder']['config']['boulder-config']['va']['portConfig']['httpsPort'] = 443
325
default['boulder']['config']['boulder-config']['va']['portConfig']['tlsPort'] = 443

metadata.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
77
issues_url 'https://github.com/patcon/chef-letsencrypt-boulder-server/issues'
88
source_url 'https://github.com/patcon/chef-letsencrypt-boulder-server'
9-
version '0.1.1'
9+
version '0.1.2'
1010

1111
supports 'ubuntu', '= 14.04'
1212
supports 'centos', '~> 7'
@@ -16,3 +16,4 @@
1616
depends 'mariadb'
1717
depends 'build-essential'
1818
depends 'yum'
19+
depends 'hostsfile'

recipes/default.rb

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Author:: Thijs Houtenbos <[email protected]>
3-
# Cookbook:: acme_server
3+
# Cookbook:: chef-letsencrypt-boulder-server
44
# Recipe:: default
55
#
66
# Copyright 2015 Schuberg Philis
@@ -33,7 +33,7 @@
3333
end
3434

3535
node.default['mariadb']['use_default_repository'] = true
36-
node.default['mariadb']['install']['version'] = '10.0'
36+
node.default['mariadb']['install']['version'] = '10.1'
3737

3838
include_recipe 'build-essential'
3939
include_recipe 'mariadb::server'
@@ -45,6 +45,12 @@
4545
compile_time false
4646
end
4747

48+
hostsfile_entry '127.0.0.1' do
49+
hostname 'localhost'
50+
aliases ['boulder', 'boulder-rabbitmq', 'boulder-mysql']
51+
action :create
52+
end
53+
4854
boulderdir = "#{node['go']['gopath']}/src/github.com/letsencrypt/boulder"
4955

5056
directory ::File.dirname boulderdir do
@@ -53,7 +59,7 @@
5359

5460
git boulderdir do
5561
repository 'https://github.com/letsencrypt/boulder'
56-
revision '8e6f13f189d7e7feb0f5407a9a9c63f3b644f730'
62+
revision node['boulder']['revision']
5763
action :checkout
5864
end
5965

@@ -80,14 +86,14 @@
8086
bash 'boulder_setup' do
8187
live_stream true
8288
cwd boulderdir
83-
code 'source /etc/profile.d/golang.sh && ./test/setup.sh 2>&1 && touch setup.done'
89+
code 'source /etc/profile.d/golang.sh && GO15VENDOREXPERIMENT=1 ./test/setup.sh 2>&1 && touch setup.done'
8490
creates "#{boulderdir}/setup.done"
8591
end
8692

8793
bash 'run_boulder' do
8894
live_stream true
8995
cwd boulderdir
90-
code 'source /etc/profile.d/golang.sh && screen -LdmS boulder ./start.py'
96+
code 'source /etc/profile.d/golang.sh && GO15VENDOREXPERIMENT=1 screen -LdmS boulder ./start.py'
9197
not_if 'screen -list boulder | /bin/grep 1\ Socket\ in'
9298
end
9399

0 commit comments

Comments
 (0)