X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=debian%2Fpatches%2Fdefault-dbconnection-sqlite.patch;h=614d3ab902bcd4ad5d1929696c2775de7ced91d9;hb=8eae4ebe951524c2961c98ac8f02a36f8b8d735b;hp=0c7e007862659bf994d03856a2b898655db5bca1;hpb=1946357f3212070b54042497775f4b55f2aafb3d;p=openstack-build%2Fceilometer-build.git diff --git a/debian/patches/default-dbconnection-sqlite.patch b/debian/patches/default-dbconnection-sqlite.patch index 0c7e007..614d3ab 100644 --- a/debian/patches/default-dbconnection-sqlite.patch +++ b/debian/patches/default-dbconnection-sqlite.patch @@ -1,11 +1,41 @@ +diff --git a/etc/ceilometer/ceilometer.conf.sample b/etc/ceilometer/ceilometer.conf.sample +index 80964a7..7668dea 100644 --- a/etc/ceilometer/ceilometer.conf.sample +++ b/etc/ceilometer/ceilometer.conf.sample -@@ -262,7 +262,7 @@ +@@ -126,7 +126,7 @@ + # - ######## defined in ceilometer.storage ######## + # The file name to use with SQLite (string value) +-#sqlite_db=ceilometer.sqlite ++sqlite_db=ceilometer.sqlite --# database_connection=mongodb://localhost:27017/ceilometer -+database_connection=sqlite:////var/lib/ceilometer/ceilometer.sqlite - #### (StrOpt) Database connection string + # If True, SQLite uses synchronous mode (boolean value) + #sqlite_synchronous=true +@@ -148,7 +148,7 @@ + # +-# Options defined in ceilometer.openstack.common.lockutils ++#Options defined in ceilometer.openstack.common.lockutils + # + + # Whether to disable inter-process locks. (boolean value) +@@ -598,7 +598,7 @@ + + # The backend to use for db (string value) + # Deprecated group/name - [DEFAULT]/db_backend +-#backend=sqlalchemy ++backend=sqlalchemy + + + # +@@ -610,7 +610,8 @@ + # Deprecated group/name - [DEFAULT]/sql_connection + # Deprecated group/name - [DATABASE]/sql_connection + # Deprecated group/name - [sql]/connection +-#connection=sqlite:////ceilometer/openstack/common/db/$sqlite_db ++connection=sqlite:////var/lib/ceilometer/$sqlite_db ++ + + # The SQLAlchemy connection string used to connect to the + # slave database (string value)