Coder Social home page Coder Social logo

cv_export_metadata's Introduction

cv_export_metadata

How to use it:

python export_metadata.py --help
usage: export_metadata.py [-h] -c C -u U -p P -o O -cvv-id CVV_ID

Generating the Content View Version Metadata.

optional arguments:
  -h, --help      show this help message and exit
  -c C            Satellite FQDN
  -u U            Username
  -p P            Password
  -o O            Satellite Organization ID
  -cvv-id CVV_ID  Content View Version ID

So, you need some information from the Satellite you are exporting the data. For example

The organization ID hammer organization list

hammer organization list
---|-------|-------|-------------|------
ID | TITLE | NAME  | DESCRIPTION | LABEL
---|-------|-------|-------------|------
1  | ACME  | ACME  |             | ACME
---|-------|-------|-------------|------

The Content View Version hammer content-view version list

hammer content-view version list
---|-------------------------------|---------|-------------|-----------------------
ID | NAME                          | VERSION | DESCRIPTION | LIFECYCLE ENVIRONMENTS
---|-------------------------------|---------|-------------|-----------------------
4  | cv_sat612_01 2.0              | 2.0     |             | Library
1  | Default Organization View 1.0 | 1.0     |             | Library
---|-------------------------------|---------|-------------|-----------------------

From now, we can move on and provide the full command

python export_metadata.py -c SATELLITE_FQDN_HERE -u admin -p PASSWORD_HERE -cvv-id 4 -o 1

Note that above, we are using the id 4 for the content view version, and id 1 for the organization.

At the end of the process, a new file named metadata.json will be created. You can upload this file to the folder of the exported Content View. Some additional details soon.

cv_export_metadata's People

Contributors

waldirio avatar

Watchers

 avatar

cv_export_metadata's Issues

update the metadata to allow publish/promote after imported.

update the metadata to allow publish/promote after imported.

As workaround

rake katello:set_content_view_import_only
    Marks a content view import only or otherwise. Only 'import_only' Content Views can import content via import/export process.
      Options:
        ID - ID of the content view that will be marked import
        VALUE - If true the provided content view will be marked as import_only. This is the default.
                If false the import_only flag of provided content view will be reset.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.