fuel-agent/fuel_agent/objects/repo.py
Vladimir Kozhukalov 9c5e3579bf IBP: Added driver and objects for building images
As far as building of OS images is nothing more than
just a stage of the whole OS installing procedure
it is sounds rational to implement this in terms
of fuel-agent. Besides, we already have plenty of utilities
which could be useful during building of images.
And some tasks are the same like pre-configuring
some files inside target OS.

Related-bug: #1433193
Implements: blueprint ibp-build-ubuntu-images
Change-Id: I3fadfb16e06e4ee16926da29b7b83ca005500698
2015-04-17 17:11:09 +03:00

29 lines
972 B
Python

# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class Repo(object):
def __init__(self, name, uri, priority=None):
self.name = name
self.uri = uri
self.priority = priority
class DEBRepo(Repo):
def __init__(self, name, uri, suite, section, meta=None, priority=None):
super(DEBRepo, self).__init__(name, uri, priority)
self.suite = suite
self.section = section
self.meta = meta