This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM centos:7 | |
| WORKDIR /etc/ansible | |
| COPY . . | |
| ENV LC_ALL en_US.UTF-8 | |
| RUN yum update -y \ | |
| && yum upgrade -y \ | |
| && yum install -y epel-release \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:20.04 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| openssh-server \ | |
| && mkdir -p /run/sshd \ | |
| && echo "root:auth" | chpasswd \ | |
| && sed -i 's/^#\(PermitRootLogin\) .*/\1 yes/' /etc/ssh/sshd_config \ | |
| && sed -i 's/^\(UsePAM yes\)/# \1/' /etc/ssh/sshd_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| f "flag" | |
| ) | |
| var Flag = func() string { | |
| var used string | |
| f.Visit(func(fg *f.Flag) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "strings" | |
| "io/ioutil" | |
| "encoding/json" | |
| "github.com/gopasspw/gopass/pkg/gopass/api" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| all: env ssh | |
| init: | |
| -vagrant validate | |
| clear: | |
| vagrant destroy --force | |
| env: init | |
| vagrant up |