578a49860a
Change-Id: I82b10aaf6bf8e53ed522405501263843d381bb1e
141 lines
1.5 KiB
ReStructuredText
141 lines
1.5 KiB
ReStructuredText
.. _examples:
|
|
|
|
|
|
========
|
|
Examples
|
|
========
|
|
|
|
Bootstrapping
|
|
-------------
|
|
|
|
::
|
|
|
|
$ sudo ./smithy --bootstrap
|
|
|
|
|
|
.. literalinclude:: examples/bootstrap.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
|
|
Preparing
|
|
---------
|
|
|
|
::
|
|
|
|
$ sudo ./smithy -a prepare
|
|
|
|
|
|
.. literalinclude:: examples/prepare.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
Installing
|
|
----------
|
|
|
|
::
|
|
|
|
$ sudo ./smithy -a install
|
|
|
|
|
|
.. literalinclude:: examples/install.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
|
|
Testing
|
|
-------
|
|
|
|
::
|
|
|
|
$ sudo ./smithy -a test
|
|
|
|
|
|
.. literalinclude:: examples/testing.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
|
|
Starting
|
|
--------
|
|
|
|
::
|
|
|
|
$ sudo ./smithy -a start
|
|
|
|
|
|
.. literalinclude:: examples/starting.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
|
|
Status
|
|
------
|
|
|
|
::
|
|
|
|
$ sudo ./smithy -a status
|
|
|
|
|
|
.. literalinclude:: examples/status.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
|
|
Stopping
|
|
--------
|
|
|
|
::
|
|
|
|
$ sudo ./smithy -a stop
|
|
|
|
|
|
.. literalinclude:: examples/stopping.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
|
|
Packaging
|
|
---------
|
|
|
|
To see the packages built (after prepare has finished).
|
|
|
|
::
|
|
|
|
$ ls /home/harlowja/openstack/deps/rpmbuild/SPECS/ | cat
|
|
|
|
.. literalinclude:: examples/spec_dir.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
::
|
|
|
|
$ cat openstack-deps.spec
|
|
|
|
.. literalinclude:: examples/openstack-deps.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
::
|
|
|
|
$ cat python-nova.spec
|
|
|
|
.. literalinclude:: examples/nova-spec.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
|
|
Uninstalling
|
|
------------
|
|
|
|
::
|
|
|
|
$ sudo ./smithy -a uninstall
|
|
|
|
|
|
.. literalinclude:: examples/uninstall.txt
|
|
:language: none
|
|
:linenos:
|
|
|
|
|