Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
451d7c01
You need to sign in or sign up before continuing.
Commit
451d7c01
authored
Sep 15, 2014
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vagrant: initial implementation
This feature adds initial vagrant-compatible box build support as outlined in #28553.
parent
5542415e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
0 deletions
+37
-0
README
features.in/vagrant/README
+11
-0
authorized_keys
features.in/vagrant/authorized_keys
+1
-0
config.mk
features.in/vagrant/config.mk
+6
-0
50-vagrant
features.in/vagrant/rootfs/image-scripts.d/50-vagrant
+19
-0
No files found.
features.in/vagrant/README
0 → 100644
View file @
451d7c01
Эта фича обеспечивает специфичную для vagrant предварительную
настройку образа файловой системы виртуальной машины.
Обратите внимание, что специфика включает широко известные:
- пароли root и пользователя vagrant с беспарольным sudo;
- "секретный" ключ от публичной части у пользователя vagrant.
См. тж.:
http://bugzilla.altlinux.org/28553
http://docs.vagrantup.com/v2/boxes/base.html
http://williamwalker.me/blog/creating-a-custom-vagrant-box.html
features.in/vagrant/authorized_keys
0 → 100644
View file @
451d7c01
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key
features.in/vagrant/config.mk
0 → 100644
View file @
451d7c01
use/vagrant: use/vmguest/vbox use/deflogin use/net-ssh use/control
@$(call add_feature)
@$(call add,THE_PACKAGES,sudo)
@$(call add,CONTROL,sudo:public)
@$(call add,USERS,vagrant:vagrant:1:) # NB: custom sudoers
@$(call set,ROOTPW,vagrant)
features.in/vagrant/rootfs/image-scripts.d/50-vagrant
0 → 100755
View file @
451d7c01
#!/bin/sh
# NB: 50-vargant > 50-users (so homedir exists already)
echo
"UseDNS no"
>>
/etc/openssh/sshd_config
# https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
pubkey
=
"ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key"
sshkeys
=
~vagrant/.ssh/authorized_keys
install
-pDm400
-o
vagrant
-g
vagrant /dev/null
"
$sshkeys
"
echo
"
$pubkey
"
>
"
$sshkeys
"
sudocfg
=
/etc/sudoers.d/vagrant
install
-pDm400
/dev/null
"
$sudocfg
"
cat
>
"
$sudocfg
"
<<
EOF
Defaults:vagrant !requiretty
vagrant ALL=(ALL) NOPASSWD:ALL
EOF
mkdir
-p
/vagrant
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment