Commit Graph

42 Commits

Author SHA1 Message Date
Charlie O'Keefe aeb6b8a9e4 Add gitian_builder_repo_path variable to gitian-build.sh 2019-06-19 13:28:06 -06:00
Charlie O'Keefe d21d38b184 Add zcash_binaries_dir_path variable to gitian-build.sh 2019-06-19 13:28:06 -06:00
Charlie O'Keefe 09d57adc24 Add zcash_repo_dir_path variable to gitian-build.sh 2019-06-19 13:28:06 -06:00
Charlie O'Keefe 06f006e42a Put explode_yaml_file.py in gitian_user's $HOME/bin 2019-06-19 13:28:06 -06:00
Charlie O'Keefe 4c24a38962 Add explode_yaml_file.py script 2019-06-19 13:28:06 -06:00
Charlie O'Keefe 5d3338c455 Add step to install ruamel.yaml python package 2019-06-19 08:45:59 -06:00
Charlie O'Keefe 04342ecebb Fix indentation 2019-06-19 08:45:43 -06:00
Charlie O'Keefe 137c560333 Don't set SUITE in /home/vagrant/.profile 2019-06-19 08:45:24 -06:00
Charlie O'Keefe 6f90fb2e26 Remove container setup tasks from VM setup playbook
Looking at builds that will involve different, or multiple, containers.
Probably makes more sense to set up and tear down containers after VM is
built.
2019-06-19 08:09:09 -06:00
Charlie O'Keefe b583751baf Put braces around variable to dereference it 2019-06-15 13:14:45 -06:00
Charlie O'Keefe 0bcbad7db2 Add configuration parameter for gitian_builder_version 2019-06-15 13:08:52 -06:00
Charlie O'Keefe 70aa531f74 Remove 'become: no' from include_tasks
Newer ansible version seems to have a problem with this
2019-06-12 22:25:44 -06:00
Charlie O'Keefe 475202bc7b Pass lists to apt module instead of looping
Removes deprecation warnings
2019-04-17 08:48:57 -06:00
Charlie O'Keefe 252475f2c9 Drop gpg2 in favor of gpg 2019-03-27 00:09:31 -06:00
Charlie O'Keefe 60c6dea291 Install lxc from standard apt repository rather than backports 2019-03-24 18:48:07 -06:00
Charlie O'Keefe 0ce6182f9e Update zcash-build vm debian release from jessie to stretch 2019-03-24 18:46:37 -06:00
Charlie O'Keefe 038ea71dc4 Remove ssh-key-copying tasks, ssh_key_name config
Preferring ssh-agent forwarding to copying user's ssh keys.

As a bonus, ansible tasks don't need to know or care about the name or
path of the user's ssh private key file, and the configuration is
simplified.
2019-02-14 15:43:45 -07:00
Charlie O'Keefe 7491699409 Don't override GNUPGHOME
A user may have set GNUPGHOME to a location other than
$HOME/.gnupg and if they have, we should let gpg use that location.
gpg already defaults to $HOME/.gnupg if GNUPGHOME isn't set.
2019-02-13 21:38:14 -07:00
Charlie O'Keefe 450ab9c789 Double-quote git name
It failed on my name so this is intended to fix that
2019-02-13 20:33:40 -07:00
Charlie O'Keefe e20cfe0782 Don't run local actions as root
commands using local_action were inheriting a global setting of "become: yes" and attempting to run using sudo. This resulted in password prompts that halted ansible execution.
2018-04-16 21:03:51 -07:00
Charlie O'Keefe 6e99c732e9 ignore errors on 'Check that the secret key exists' task
If the grep for gpg_key_id fails to match we will have an exit code of 1 which by
default will cause the task to fail. According to the README, using a gpg key is considered optional. So we don't want the build to halt in this case.
2018-04-12 14:19:22 -06:00
Charlie O'Keefe 90151b3471 Add --with-colons option
This option tells gpg to use a colon-separated output format intended for parsing
by scripts rather than reading by humans. From my experience it is also less likely
to truncate the key id we are grepping for here, which would cause the grep
command to miss the key id, even when it exists in the key database.
2018-04-12 14:10:36 -06:00
Charlie O'Keefe 1e696ce2be Use 'shell' ansible module in place of 'command'
This is a compound command, piping the output of a call to gpg2 to the input of
a call to grep. This is the type of instruction that requires a shell to interpret, so use
the 'shell' module.
2018-04-12 14:04:42 -06:00
Charlie O'Keefe efb1f0acb2 Use apt module to run apt-get commands
Removes some warning messages from ansible output
2018-03-21 13:46:31 -06:00
Charlie O'Keefe e2b907ba54 Change 'always_run: yes' to 'check_mode: no'
Removes some deprecation warnings in ansible output
2018-03-21 11:39:34 -06:00
Charlie O'Keefe 1359bb01e2 Change 'include' to 'include_tasks'
Removes some deprecation warnings in ansible output
2018-03-21 11:39:34 -06:00
Charlie O'Keefe 656382c7bb Use ansible 'filesystem' module to resize filesystem 2018-03-21 11:39:34 -06:00
Charlie O'Keefe 970a0f1b9c Add condition to partition resize task 2018-03-21 11:39:34 -06:00
Charlie O'Keefe e3ec525ae2 Use parted ansible module for partition removal
Tasks using this module should be more immutable rather than failing
when these partitions have already been removed.

Also remove parted from dependencies in gitian section

since it is required earlier in the 'common' section
2018-03-21 11:39:34 -06:00
Charlie O'Keefe 9d13a595aa Add steps to repartition disk and resize filesystem on partition 2018-03-20 09:49:16 -06:00
bitcartel 0c27153b50 Update main.yml
Fix zcash-build error
2017-08-03 21:22:40 -07:00
Kevin Gallagher 0458368089 Set default EDITOR to vim and set vimrc options 2017-03-08 15:19:59 -08:00
Kevin Gallagher 48a5cc9b9c Adds Lintian to installed apt packages 2017-02-12 15:54:52 -08:00
Kevin Gallagher d0ca504c06 Fix unarchive task in Gitian role
As of Ansible 2.2.0, copy and remote_src are mutually exclusive.
Also adds IdentitiesOnly=yes to SSH options.
2016-12-08 11:19:41 -08:00
Kevin Gallagher 4a2f08ae89 Updates gitian-builder repository URL to official one
Our pull request relating to lxc-init has been merged so there is no need to
keep using the fork.
2016-10-25 16:56:32 -07:00
Kevin M. Gallagher 00e9d9d76f Import Zcash developer public keys
* Changes method for setting trust level of GPG keys
* Import keys but don't use Ansible git verify_commit
Per an upstream Ansible bug, verifying signed tags is not supported yet.
Also removes non-working scp.sh script.
Updates README to explain how to run gverify.
Changes zcash_version to v1.0.0-rc2
2016-10-22 16:44:26 -07:00
Kevin Gallagher 02f7f13439 Bumps allocated memory from 3072 to 3584
We have more memory available, so might as well use it.
Also lowers vm.swappiness from 10 to 1.
2016-10-18 00:57:58 -07:00
Kevin Gallagher 75f6f20caf Reduces swap file size from 2GB to 1GB
Also intended to free up more storage space in the VM, as resizing the disk isn't easy.
2016-10-17 15:11:22 -07:00
Kevin Gallagher 77d43abbe7 Clean the apt cache at the end of provisioning
The VirtualBox VM is running tight on available space with nearly 100% usage.
This frees things up a bit by cleaning the apt cache after Gitian installation.
2016-10-17 15:07:39 -07:00
Kevin Gallagher 76eb7a3272 Tweaks output and commit message in gitian-build.sh
We are not building signed Win/OSX binaries, so all our Gitian signatures are "unsigned".
2016-10-17 14:58:48 -07:00
Kevin Gallagher 191f52ed3e Update git tasks, vars, task descriptions + README
Don't use depth: 1 or ignore_errors in git tasks.
Commit history is nice, and since you can't do most things without the
repositories, we should fail closed upon errors.
Creates variable for 'gitian_builder_url', so we can switch out @ageis's fork
with the official @devrandom repo once a pending pull request is merged.
Changes default zcash_version to 'master' in defaults/main.yml.
2016-10-16 23:08:43 -07:00
Kevin Gallagher 4c20410fd8 Initial commit 2016-10-16 18:50:37 -07:00