Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
#120: Install tmate
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Rombauts committed Jun 19, 2018
1 parent 480e784 commit 2466205
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ For more details refer to our [FAQ](https://www.joomlatools.com/developer/tools/
## Sharing access to the box
### HTTP
One of the great features of Vagrant is [Vagrant Share](https://docs.vagrantup.com/v2/share/index.html). Note that Vagrant Share requires [ngrok](https://ngrok.com/) to work. We recommend you follow these set up steps first:
1. Upgrade Vagrant to the latest version.
Expand All @@ -81,6 +83,13 @@ vagrant share --http 80
For more options and background please refer to the [Vagrant docs](https://docs.vagrantup.com/v2/share/index.html).
### SSH
You can also share SSH access. There are two methods:
1. With [tmate](https://tmate.io/): run the `tmate` command on the box and share the resulting ssh connection string.
1. Using Vagrant's built-in [SSH sharing](https://www.vagrantup.com/docs/share/ssh.html) feature.
## Hacking on the box
### Set up
Expand Down
3 changes: 2 additions & 1 deletion puppet/Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ mod 'example42-apache',
:ref => 'v2.1.13'
mod 'camptocamp-openssl', '1.2.4'

mod 'maestrodev/ssh_keygen', '1.3.1'
mod 'golja-gnupg', '1.2.3'
mod 'petems-swap_file', '4.0.0'

mod 'eirc-single_user_rvm', '0.3.0'

mod 'camptocamp-archive',
:git => 'https://github.com/camptocamp/puppet-archive',
:ref => '0.8.1'
:ref => '0.8.1'
6 changes: 4 additions & 2 deletions puppet/Puppetfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ FORGE
puppetlabs-stdlib (< 5.0.0, >= 3.2.0)
example42-monitor (2.0.4)
example42-puppi (>= 2.0.0)
example42-puppi (2.2.3)
example42-puppi (2.2.6)
puppetlabs-stdlib (< 5.0.0, >= 3.2.0)
example42-yum (2.1.28)
example42-yum (2.1.29)
example42-puppi (>= 2.0.0)
golja-gnupg (1.2.3)
herculesteam-augeasproviders_core (2.1.4)
puppetlabs-stdlib (< 5.0.0, >= 3.2.0)
herculesteam-augeasproviders_sysctl (2.2.0)
herculesteam-augeasproviders_core (< 3.0.0, >= 2.1.0)
maestrodev-ssh_keygen (1.3.1)
petems-swap_file (4.0.0)
herculesteam-augeasproviders_core (< 3.0.0, >= 2.1.0)
herculesteam-augeasproviders_sysctl (< 3.0.0, >= 2.1.0)
Expand Down Expand Up @@ -79,6 +80,7 @@ DEPENDENCIES
eirc-single_user_rvm (= 0.3.0)
example42-apache (>= 0)
golja-gnupg (= 1.2.3)
maestrodev-ssh_keygen (= 1.3.1)
petems-swap_file (= 4.0.0)
puppet-php (>= 0)
puppetlabs-apt (= 2.4.0)
Expand Down
4 changes: 4 additions & 0 deletions puppet/modules/custom/profiles/manifests/base.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,8 @@
content => "export JOOMLATOOLS_BOX=${::box_version}\n",
}

ssh_keygen { 'vagrant':
home => '/home/vagrant',
}

}
6 changes: 6 additions & 0 deletions puppet/modules/custom/profiles/manifests/box/tools.pp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
ensure => latest
}

apt::ppa { 'ppa:tmate.io/archive': }

package { 'tmate':
ensure => latest
}

file { '/usr/share/phpmetrics':
ensure => directory,
owner => vagrant
Expand Down
Empty file modified shell/librarian-puppet.sh
100644 → 100755
Empty file.

0 comments on commit 2466205

Please sign in to comment.