github.com/rohankumardubey/nomad@v0.11.8/scripts/vagrant-freebsd-priv-config.sh (about)

     1  #!/bin/sh
     2  
     3  chown vagrant:wheel \
     4         /opt/gopath \
     5         /opt/gopath/src \
     6         /opt/gopath/src/github.com \
     7         /opt/gopath/src/github.com/hashicorp
     8  
     9  mkdir -p /usr/local/etc/pkg/repos
    10  
    11  cat <<EOT > /usr/local/etc/pkg/repos/FreeBSD.conf
    12  FreeBSD: {
    13  	url: "pkg+http://pkg.FreeBSD.org/\${ABI}/latest"
    14  }
    15  EOT
    16  
    17  pkg update
    18  
    19  pkg install -y \
    20         editors/vim-tiny \
    21         devel/git \
    22         devel/gmake \
    23         lang/go \
    24         security/ca_root_nss \
    25         shells/bash
    26  
    27  chsh -s /usr/local/bin/bash vagrant
    28  chsh -s /usr/local/bin/bash root
    29  
    30  cat <<EOT >> /home/vagrant/.profile
    31  export GOPATH=/opt/gopath
    32  export PATH=\$GOPATH/bin:\$PATH
    33  
    34  cd /opt/gopath/src/github.com/hashicorp/nomad
    35  EOT