Add default settings.yaml for fuel_bootstrap_cli
Move all fuel_bootstrap files under one folder-logic naming Partially implements: blueprint dynamically-build-bootstrap Change-Id: I79cecaa006c37207149e5ae9cf85c9aad3da71c0
This commit is contained in:
parent
1672c18c81
commit
f0eddf7873
@ -0,0 +1,116 @@
|
|||||||
|
---
|
||||||
|
# User can pass any type of executable script
|
||||||
|
#post_script_file: /tmp/my_custom_script
|
||||||
|
root_ssh_authorized_file: /root/.ssh/id_rsa.pub
|
||||||
|
# Extended kernel PXE options
|
||||||
|
extend_kopts: "biosdevname=0 debug ignore_loglevel log_buf_len=10M print_fatal_signals=1 LOGLEVEL=8"
|
||||||
|
# Directory that will be injected to the image
|
||||||
|
# root filesystem. **NOTE** Files/packages will be
|
||||||
|
# injected after installing all packages, but before
|
||||||
|
# generating system initramfs - thus it's possible to
|
||||||
|
# adjust initramfs
|
||||||
|
extra_files:
|
||||||
|
- /usr/share/fuel_bootstrap/files/trusty
|
||||||
|
# Save generated bootstrap container to
|
||||||
|
output_dir: /tmp/
|
||||||
|
# Defines kernel version
|
||||||
|
kernel-flavor: linux-image-generic-lts-trusty
|
||||||
|
# Define packages list
|
||||||
|
packages:
|
||||||
|
- vim
|
||||||
|
- mc
|
||||||
|
- openssh-client
|
||||||
|
- openssh-server
|
||||||
|
- ntp
|
||||||
|
- mcollective
|
||||||
|
- nailgun-agent
|
||||||
|
- nailgun-mcagents
|
||||||
|
- network-checker
|
||||||
|
- fuel-agent
|
||||||
|
- ubuntu-minimal
|
||||||
|
- live-boot
|
||||||
|
- live-boot-initramfs-tools
|
||||||
|
- wget
|
||||||
|
- linux-firmware
|
||||||
|
- linux-firmware-nonfree
|
||||||
|
- xz-utils
|
||||||
|
- squashfs-tools
|
||||||
|
- msmtp-mta
|
||||||
|
# Ignore proxy for this repos
|
||||||
|
#direct_repo_addresses:
|
||||||
|
# - 127.0.0.1
|
||||||
|
# - 172.18.196.50
|
||||||
|
# Pass proxy parameters, for access to repos
|
||||||
|
#http_proxy: "192.168.1.50:8080"
|
||||||
|
#https_proxy: "192.168.1.50:8080"
|
||||||
|
# Define upstream ubuntu-mirror
|
||||||
|
ubuntu_repos:
|
||||||
|
-
|
||||||
|
name: ubuntu
|
||||||
|
priority: None
|
||||||
|
section: "main universe multiverse"
|
||||||
|
suite: trusty
|
||||||
|
type: deb
|
||||||
|
uri: "http://archive.ubuntu.com/ubuntu"
|
||||||
|
-
|
||||||
|
name: ubuntu-updates
|
||||||
|
priority: None
|
||||||
|
section: "main universe multiverse"
|
||||||
|
suite: trusty-updates
|
||||||
|
type: deb
|
||||||
|
uri: "http://archive.ubuntu.com/ubuntu"
|
||||||
|
-
|
||||||
|
name: ubuntu-security
|
||||||
|
priority: None
|
||||||
|
section: "main universe multiverse"
|
||||||
|
suite: trusty-security
|
||||||
|
type: deb
|
||||||
|
uri: "http://archive.ubuntu.com/ubuntu"
|
||||||
|
# Define MirantisOpenstack mirror
|
||||||
|
mos_repos:
|
||||||
|
-
|
||||||
|
name: mos
|
||||||
|
priority: "1050"
|
||||||
|
section: "main restricted"
|
||||||
|
suite: mos8.0
|
||||||
|
type: deb
|
||||||
|
uri: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0"
|
||||||
|
-
|
||||||
|
name: mos-updates
|
||||||
|
priority: "1050"
|
||||||
|
section: "main restricted"
|
||||||
|
suite: mos8.0-updates
|
||||||
|
type: deb
|
||||||
|
uri: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0"
|
||||||
|
-
|
||||||
|
name: mos-security
|
||||||
|
priority: "1050"
|
||||||
|
section: "main restricted"
|
||||||
|
suite: mos8.0-security
|
||||||
|
type: deb
|
||||||
|
uri: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0"
|
||||||
|
-
|
||||||
|
name: mos-holdback
|
||||||
|
priority: "1100"
|
||||||
|
section: "main restricted"
|
||||||
|
suite: mos8.0-holdback
|
||||||
|
type: deb
|
||||||
|
uri: "http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0"
|
||||||
|
# Define other deb repositories
|
||||||
|
extra_repos:
|
||||||
|
-
|
||||||
|
name: Extra_repo
|
||||||
|
priority: None
|
||||||
|
section: main
|
||||||
|
suite: trusty
|
||||||
|
type: deb
|
||||||
|
uri: "http://archive.ubuntu.com/ubuntu"
|
||||||
|
# For import\activate commands only.
|
||||||
|
bootstrap_images_dir: "/var/www/nailgun/bootstraps"
|
||||||
|
# For import\activate commands only
|
||||||
|
active_bootstrap_symlink: "/var/www/nailgun/bootstraps/active_bootstrap"
|
||||||
|
# For import\activate commands only
|
||||||
|
#"fuel_access"
|
||||||
|
# "user": "admin"
|
||||||
|
# "password": "admin"
|
||||||
|
|
@ -77,7 +77,7 @@ User-friendly wrapper for user set of scripts from fuel-agent
|
|||||||
cd %{_builddir}/%{name}-%{version} && python setup.py build
|
cd %{_builddir}/%{name}-%{version} && python setup.py build
|
||||||
|
|
||||||
#building fuel-bootstrap-cli
|
#building fuel-bootstrap-cli
|
||||||
cd %{_builddir}/%{name}-%{version}/contrib/mk_bootstrap/fuel_bootstrap/ && PBR_VERSION=%{version} python setup.py build
|
cd %{_builddir}/%{name}-%{version}/contrib/fuel_bootstrap/fuel_bootstrap_cli/ && PBR_VERSION=%{version} python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{_builddir}/%{name}-%{version} && python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/INSTALLED_FILES
|
cd %{_builddir}/%{name}-%{version} && python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/INSTALLED_FILES
|
||||||
@ -92,9 +92,11 @@ install -d -m 755 %{buildroot}%{_datadir}/ironic-fa-bootstrap-configs/
|
|||||||
cp -a %{_builddir}/%{name}-%{version}/contrib/ironic/bootstrap-files/* %{buildroot}%{_datadir}/ironic-fa-bootstrap-configs/
|
cp -a %{_builddir}/%{name}-%{version}/contrib/ironic/bootstrap-files/* %{buildroot}%{_datadir}/ironic-fa-bootstrap-configs/
|
||||||
|
|
||||||
#Install fuel-bootstrap-cli files
|
#Install fuel-bootstrap-cli files
|
||||||
cd %{_builddir}/%{name}-%{version}/contrib/mk_bootstrap/fuel_bootstrap/ && PBR_VERSION=%{version} python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/contrib/mk_bootstrap/fuel_bootstrap/INSTALLED_FILES
|
cd %{_builddir}/%{name}-%{version}/contrib/fuel_bootstrap/fuel_bootstrap_cli/ && PBR_VERSION=%{version} python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=%{_builddir}/%{name}-%{version}/contrib/fuel_bootstrap/fuel_bootstrap_cli/INSTALLED_FILES
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/mk_bootstrap/files/
|
install -d -m 755 %{buildroot}%{_sysconfdir}/fuel-bootstrap-cli
|
||||||
cp -a %{_builddir}/%{name}-%{version}/contrib/mk_bootstrap/files/* %{buildroot}%{_datadir}/mk_bootstrap/files/
|
install -p -D -m 644 %{_builddir}/%{name}-%{version}/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/settings.yaml.sample %{buildroot}%{_sysconfdir}/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml
|
||||||
|
install -d -m 755 %{buildroot}%{_datadir}/fuel_bootstrap_cli/files/
|
||||||
|
cp -a %{_builddir}/%{name}-%{version}/contrib/fuel_bootstrap/files/* %{buildroot}%{_datadir}/fuel_bootstrap_cli/files/
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -109,9 +111,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%attr(0644,root,root) %config(noreplace) %{_datadir}/ironic-fa-bootstrap-configs/*
|
%attr(0644,root,root) %config(noreplace) %{_datadir}/ironic-fa-bootstrap-configs/*
|
||||||
%attr(0755,root,root) %config(noreplace) %{_datadir}/ironic-fa-bootstrap-configs/usr/bin/configure-remote-logging.sh
|
%attr(0755,root,root) %config(noreplace) %{_datadir}/ironic-fa-bootstrap-configs/usr/bin/configure-remote-logging.sh
|
||||||
|
|
||||||
%files -n fuel-bootstrap-cli -f %{_builddir}/%{name}-%{version}/contrib/mk_bootstrap/fuel_bootstrap/INSTALLED_FILES
|
%files -n fuel-bootstrap-cli -f %{_builddir}/%{name}-%{version}/contrib/fuel_bootstrap/fuel_bootstrap_cli/INSTALLED_FILES
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(0644,root,root) %config(noreplace) %{_datadir}/mk_bootstrap/files/*
|
%config(noreplace) %{_sysconfdir}/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml
|
||||||
%attr(0755,root,root) %config(noreplace) %{_datadir}/mk_bootstrap/files/trusty/usr/bin/fix-configs-on-startup
|
%attr(0644,root,root) %config(noreplace) %{_datadir}/fuel_bootstrap_cli/files/*
|
||||||
%attr(0755,root,root) %config(noreplace) %{_datadir}/mk_bootstrap/files/trusty/usr/bin/send2syslog.py
|
%attr(0755,root,root) %config(noreplace) %{_datadir}/fuel_bootstrap_cli/files/trusty/usr/bin/fix-configs-on-startup
|
||||||
%attr(0755,root,root) %config(noreplace) %{_datadir}/mk_bootstrap/files/trusty/etc/rc.local
|
%attr(0755,root,root) %config(noreplace) %{_datadir}/fuel_bootstrap_cli/files/trusty/usr/bin/send2syslog.py
|
||||||
|
%attr(0755,root,root) %config(noreplace) %{_datadir}/fuel_bootstrap_cli/files/trusty/etc/rc.local
|
||||||
|
2
tox.ini
2
tox.ini
@ -19,7 +19,7 @@ downloadcache = ~/cache/pip
|
|||||||
deps = hacking==0.10.2
|
deps = hacking==0.10.2
|
||||||
commands =
|
commands =
|
||||||
flake8 {posargs:fuel_agent}
|
flake8 {posargs:fuel_agent}
|
||||||
flake8 {posargs:contrib/mk_bootstrap/fuel_bootstrap/fuel_bootstrap}
|
flake8 {posargs:contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user